mirror of
https://git.vectorsigma.ru/public/CasaOS.git
synced 2026-07-28 23:17:36 +00:00
@@ -482,7 +482,7 @@ func GetCPUThermalZone() string {
|
|||||||
name = strings.TrimSuffix(string(file.ReadFullFile(path+"/type")), "\n")
|
name = strings.TrimSuffix(string(file.ReadFullFile(path+"/type")), "\n")
|
||||||
for _, s := range cpu_types {
|
for _, s := range cpu_types {
|
||||||
if strings.HasPrefix(name, s) {
|
if strings.HasPrefix(name, s) {
|
||||||
logger.Info(fmt.Sprintf("CPU thermal zone found: %s, path: %s.", name, path))
|
//logger.Info(fmt.Sprintf("CPU thermal zone found: %s, path: %s.", name, path))
|
||||||
Cache.SetDefault(keyName, path)
|
Cache.SetDefault(keyName, path)
|
||||||
return path
|
return path
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user