Browse Source

Update index.php

Yeung Alan 5 years ago
parent
commit
35d4005685
1 changed files with 2 additions and 2 deletions
  1. 2 2
      DiskInfo/index.php

+ 2 - 2
DiskInfo/index.php

@@ -350,9 +350,9 @@ $.get( "opr.php?opr=info&drive=" + active, function( data ) {
 	}
 	
 	//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");
-	}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");
 	}else{
 		$("#temperature_c").attr("class","ts card");