diff options
author | HandyMenny <handymenny@outlook.com> | 2014-10-15 21:39:12 +0200 |
---|---|---|
committer | Andrea Mennillo <handymenny@outlook.com> | 2014-10-21 13:58:17 +0200 |
commit | b603345e32ab2b3eb5ecf58d2796829b056a456d (patch) | |
tree | b79195f3c68af3c0cc4b653bb806107239ee92c8 /data.cpp | |
parent | gui: Disable unnecessary checks if TW_CUSTOM_THEME is defined (diff) | |
download | android_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 '')
-rw-r--r-- | data.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |