From eca275d40a52addf87142f0f4f82c19c0516f01a Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Tue, 3 Nov 2015 12:31:26 -0500 Subject: [PATCH] Fixed warning threshold --- src/usr/local/www/widgets/javascript/thermal_sensors.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr/local/www/widgets/javascript/thermal_sensors.js b/src/usr/local/www/widgets/javascript/thermal_sensors.js index 75e143b107..9f8495e172 100644 --- a/src/usr/local/www/widgets/javascript/thermal_sensors.js +++ b/src/usr/local/www/widgets/javascript/thermal_sensors.js @@ -233,7 +233,7 @@ function setTempProgress(bar, percent) { barTempM = 0; barTempH = 0; } else if(percent <= criticalTemp) { - barTempL = WarningTemp; + barTempL = warningTemp; barTempM = percent - warningTemp; barTempH = 0; } else { @@ -242,6 +242,7 @@ function setTempProgress(bar, percent) { barTempH = percent - criticalTemp; } + $('#' + 'temperaturebarL' + bar).css('width', barTempL + '%').attr('aria-valuenow', barTempL); $('#' + 'temperaturebarM' + bar).css('width', barTempM + '%').attr('aria-valuenow', barTempM); $('#' + 'temperaturebarH' + bar).css('width', barTempH + '%').attr('aria-valuenow', barTempH);