summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--data.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/data.cpp b/data.cpp
index 0e46b3bdb..0d05c3d59 100644
--- a/data.cpp
+++ b/data.cpp
@@ -903,7 +903,9 @@ int DataManager::GetMagicValue(const string varName, string& value)
convert_temp = strtoul(results.c_str(), NULL, 0) / 1000;
if (convert_temp <= 0)
convert_temp = strtoul(results.c_str(), NULL, 0);
- cpuSecCheck = curTime.tv_sec + 5;
+ if (convert_temp >= 150)
+ convert_temp = strtoul(results.c_str(), NULL, 0) / 10;
+ cpuSecCheck = curTime.tv_sec + 5;
}
value = TWFunc::to_string(convert_temp);
return 0;