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