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);