opt.: bsd cpu

This commit is contained in:
lollipopkit
2023-08-22 21:18:46 +08:00
parent 417cb4c89d
commit 3475e6ec91
2 changed files with 18 additions and 11 deletions

View File

@@ -112,7 +112,7 @@ Cpus parseBsdCpu(String raw) {
if (percents.length != 3) return initCpuStatus;
return initCpuStatus
..now = [
OneTimeCpuStatus('cpu', percents[0].toInt(), percents[1].toInt(), 0,
percents[2].toInt(), 0, 0, 0)
OneTimeCpuStatus('cpu', percents[0].toInt(), 0, 0,
percents[2].toInt() + percents[1].toInt(), 0, 0, 0)
];
}