CPUUsage (BSD): fix totalAll calculation

This commit is contained in:
Carter Li committed 2024-06-17 22:51:02 +08:00
1 parent 5926c259ed
commit d296e53213
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -36,8 +36,8 @@ const char* ffGetCpuUsageInfo(FFlist* cpuTimes)
FFCpuUsageInfo* info = (FFCpuUsageInfo*) ffListAdd(cpuTimes);
*info = (FFCpuUsageInfo) {
.inUseAll = (uint64_t)inUse,
.totalAll = (uint64_t)total,
.inUseAll = inUse,
.totalAll = total,
};
}
else