Fix exception caused by LANG > Chinese

This commit is contained in:
Junyuan Feng
2022-05-03 12:06:18 +08:00
parent 9e2d49773f
commit 5c59833233
4 changed files with 11 additions and 24 deletions

View File

@@ -244,7 +244,7 @@ class ServerProvider extends BusyProvider {
}
String _getCPUTemp(String type, String value) {
const noMatch = 'No such file or directory';
const noMatch = r"cat: '/sys/class/thermal/thermal_zone*/type'";
// Not support to get CPU temperature
if (value.contains(noMatch) ||
type.contains(noMatch) ||