Fix scorll error.

This commit is contained in:
Junyuan Feng
2022-05-05 13:31:45 +08:00
parent 521ff998af
commit f9aa3b1728
8 changed files with 32 additions and 24 deletions

View File

@@ -14,8 +14,10 @@ class Cpu2Status {
return used.isNaN ? 0 : 100 - used * 100;
}
Cpu2Status update(List<CpuStatus> newStatus, String newTemp) {
return Cpu2Status(now, newStatus, newTemp);
void update(List<CpuStatus> newStatus, String newTemp) {
pre = now;
now = newStatus;
temp = newTemp;
}
int get coresCount => now.length;