Explorar el Código

add version check header

reid hace 2 años
padre
commit
70406b9a46
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      system/system.go

+ 1 - 1
system/system.go

@@ -37,7 +37,7 @@ func GetTemp() float64 {
 	data, err := ioutil.ReadFile("/sys/class/thermal/thermal_zone0/temp")
 	if err != nil {
 		errmsg := fmt.Sprintf("Error reading temperature:", err)
-		config.Logger.Error(errmsg)
+		// config.Logger.Error(errmsg) // ignore for vps testing
 		return 0
 	}
 	tempStr := strings.TrimSpace(string(data))