summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorHandyMenny <handymenny@outlook.com>2014-10-15 21:39:12 +0200
committerAndrea Mennillo <handymenny@outlook.com>2014-10-21 13:58:17 +0200
commitb603345e32ab2b3eb5ecf58d2796829b056a456d (patch)
treeb79195f3c68af3c0cc4b653bb806107239ee92c8 /data.cpp
parentgui: Disable unnecessary checks if TW_CUSTOM_THEME is defined (diff)
downloadandroid_bootable_recovery-b603345e32ab2b3eb5ecf58d2796829b056a456d.tar
android_bootable_recovery-b603345e32ab2b3eb5ecf58d2796829b056a456d.tar.gz
android_bootable_recovery-b603345e32ab2b3eb5ecf58d2796829b056a456d.tar.bz2
android_bootable_recovery-b603345e32ab2b3eb5ecf58d2796829b056a456d.tar.lz
android_bootable_recovery-b603345e32ab2b3eb5ecf58d2796829b056a456d.tar.xz
android_bootable_recovery-b603345e32ab2b3eb5ecf58d2796829b056a456d.tar.zst
android_bootable_recovery-b603345e32ab2b3eb5ecf58d2796829b056a456d.zip
Diffstat (limited to 'data.cpp')
-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;