Changeset 62097 in vbox
- Timestamp:
- Jul 7, 2016 9:08:21 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceStats.cpp
r60268 r62097 263 263 req.guestStats.u32CpuLoad_User = (uint32_t)(deltaUser * 100 / ullTotalTime); 264 264 265 req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_CPU_LOAD_IDLE | VBOX_GUEST_STAT_CPU_LOAD_KERNEL 265 req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_CPU_LOAD_IDLE 266 | VBOX_GUEST_STAT_CPU_LOAD_KERNEL 266 267 | VBOX_GUEST_STAT_CPU_LOAD_USER; 267 268 req.guestStats.u32CpuId = i; 269 fCpuInfoAvail = true; 268 270 int rc = VbglR3StatReport(&req); 269 271 if (RT_SUCCESS(rc)) … … 418 420 g_VMStat.au64LastCpuLoad_Nice[u32CpuId] = u64Nice; 419 421 420 req.guestStats.u32CpuId = u32CpuId;421 422 req.guestStats.u32CpuLoad_Idle = (uint32_t)(u64DeltaIdle * 100 / u64DeltaAll); 422 423 req.guestStats.u32CpuLoad_Kernel = (uint32_t)(u64DeltaSystem * 100 / u64DeltaAll); … … 426 427 | VBOX_GUEST_STAT_CPU_LOAD_KERNEL 427 428 | VBOX_GUEST_STAT_CPU_LOAD_USER; 429 req.guestStats.u32CpuId = u32CpuId; 428 430 fCpuInfoAvail = true; 429 431 rc = VbglR3StatReport(&req); … … 582 584 | VBOX_GUEST_STAT_CPU_LOAD_USER; 583 585 fCpuInfoAvail = true; 584 585 586 rc = VbglR3StatReport(&req); 586 587 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.