aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-02-11 06:53:36 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-11 06:53:36 -0800
commit860fc696d7020e59904f15a7d89b596a135bade8 (patch)
treeea36691c04b2d4b4011c53cd68efae02c44c8adb /tools
parent1b39f439413c52eb5b172834775104a89eb229aa (diff)
fix for gpu valgrind bot
Diffstat (limited to 'tools')
-rw-r--r--tools/ThermalManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ThermalManager.cpp b/tools/ThermalManager.cpp
index 7a3911d80c..36f7468002 100644
--- a/tools/ThermalManager.cpp
+++ b/tools/ThermalManager.cpp
@@ -94,9 +94,9 @@ ThermalManager::TripPoint::TripPoint(SkString thermalZoneRoot, SkString pointNam
fullPath.appendf("/%s", pointName.c_str());
fPoint = OpenFileAndReadInt32(fullPath.c_str());
fBase = GetTemp(fThermalZoneRoot);
+ fThreshold = threshold;
fDisabled = fBase >= fPoint + fThreshold; // We disable any trip point which start off
// triggered
- fThreshold = threshold;
if (!fDisabled) {
SkDebugf("Trip point %s base - %d trip point-%d\n", fullPath.c_str(),
fBase, fPoint);