|
@@ -350,9 +350,9 @@ $.get( "opr.php?opr=info&drive=" + active, function( data ) {
|
|
}
|
|
}
|
|
|
|
|
|
//if temp more than 40C, then warning
|
|
//if temp more than 40C, then warning
|
|
- if(arr["temperature"]["current"] > 40){
|
|
|
|
|
|
+ if(arr["temperature"]["current"] > 40 || arr["temperature"]["current"] < 0){
|
|
$("#temperature_c").attr("class","ts inverted warning card");
|
|
$("#temperature_c").attr("class","ts inverted warning card");
|
|
- }else if(arr["temperature"]["current"] > 0 && arr["temperature"]["current"] < 40){
|
|
|
|
|
|
+ }else if(arr["temperature"]["current"] >= 0 && arr["temperature"]["current"] <= 40){
|
|
$("#temperature_c").attr("class","ts inverted primary card");
|
|
$("#temperature_c").attr("class","ts inverted primary card");
|
|
}else{
|
|
}else{
|
|
$("#temperature_c").attr("class","ts card");
|
|
$("#temperature_c").attr("class","ts card");
|