mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
Fix scorll error.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -21,7 +21,10 @@ class NetSpeed {
|
||||
return devices;
|
||||
}
|
||||
|
||||
NetSpeed update(List<NetSpeedPart> newOne) => NetSpeed(now, newOne);
|
||||
void update(List<NetSpeedPart> newOne) {
|
||||
old = now;
|
||||
now = newOne;
|
||||
}
|
||||
|
||||
int get timeDiff => now[0].time - old[0].time;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user