Browse Source

add version check header

reid 2 năm trước cách đây
mục cha
commit
70406b9a46
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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))