Index: tools/ThermalManager.cpp |
diff --git a/tools/ThermalManager.cpp b/tools/ThermalManager.cpp |
index 36f74680022b0055fb7618ef5caec2f100399213..21c0fc367fa8f895ace7faf87e0acdde4b50c911 100644 |
--- a/tools/ThermalManager.cpp |
+++ b/tools/ThermalManager.cpp |
@@ -95,7 +95,7 @@ ThermalManager::TripPoint::TripPoint(SkString thermalZoneRoot, SkString pointNam |
fPoint = OpenFileAndReadInt32(fullPath.c_str()); |
fBase = GetTemp(fThermalZoneRoot); |
fThreshold = threshold; |
- fDisabled = fBase >= fPoint + fThreshold; // We disable any trip point which start off |
+ fDisabled = fBase + fThreshold >= fPoint; // We disable any trip point which start off |
// triggered |
if (!fDisabled) { |
SkDebugf("Trip point %s base - %d trip point-%d\n", fullPath.c_str(), |