From dd7abd9b5423fe5f094723e7c8ef8b00dce3b347 Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Thu, 7 Sep 2017 01:27:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 5020e0b..6e9c4d4 100644 --- a/main.go +++ b/main.go @@ -152,9 +152,9 @@ func CpuTempetureScraper(processorCount int, notifier <-chan TempetureChange, er select { case change := <-notifier: controller := controllers[change.Id] - resp := controller.Update(change) + resp := controller.Update(change.Tempeture) - adj_noob := -resp + minNoob + adj_noob := -int(resp) + minNoob if adj_noob > maxNoob { adj_noob = maxNoob }