Fixed warning threshold

This commit is contained in:
Stephen Beaver 2015-11-03 12:31:26 -05:00
parent 6684d5944e
commit eca275d40a

View File

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