|
|
@@ -36,8 +36,8 @@ func GetDisk() (uint64, uint64) {
|
|
|
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) // ignore for vps testing
|
|
|
+ // errmsg := fmt.Sprintf("Error reading temperature:", err) // ignore for vps testing
|
|
|
+ // config.Logger.Error(errmsg)
|
|
|
return 0
|
|
|
}
|
|
|
tempStr := strings.TrimSpace(string(data))
|