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 }