Changeset 28738 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Apr 26, 2010 10:06:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceStats.cpp
r28737 r28738 208 208 req.guestStats.u32PageFileSize = (uint32_t)(memStatus.ullTotalPageFile / _4K) - req.guestStats.u32PhysMemTotal; 209 209 req.guestStats.u32MemoryLoad = memStatus.dwMemoryLoad; 210 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL | VBOX_GUEST_STAT_PHYS_MEM_AVAIL | VBOX_GUEST_STAT_PAGE_FILE_SIZE 210 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL 211 | VBOX_GUEST_STAT_PHYS_MEM_AVAIL 212 | VBOX_GUEST_STAT_PAGE_FILE_SIZE 211 213 | VBOX_GUEST_STAT_MEMORY_LOAD; 212 214 #ifdef VBOX_WITH_MEMBALLOON … … 353 355 354 356 req.guestStats.u32PageSize = getpagesize(); 355 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL \356 | VBOX_GUEST_STAT_PHYS_MEM_AVAIL \357 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL 358 | VBOX_GUEST_STAT_PHYS_MEM_AVAIL 357 359 | VBOX_GUEST_STAT_PAGE_FILE_SIZE; 358 360 #ifdef VBOX_WITH_MEMBALLOON … … 426 428 req.guestStats.u32CpuLoad_User = (uint32_t)((u64DeltaUser 427 429 + u64DeltaNice) * 100 / u64DeltaAll); 428 req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_CPU_LOAD_IDLE \429 | VBOX_GUEST_STAT_CPU_LOAD_KERNEL \430 req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_CPU_LOAD_IDLE 431 | VBOX_GUEST_STAT_CPU_LOAD_KERNEL 430 432 | VBOX_GUEST_STAT_CPU_LOAD_USER; 431 433 fCpuInfoAvail = true; … … 530 532 req.guestStats.u32PageSize = getpagesize(); 531 533 532 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL \533 | VBOX_GUEST_STAT_PHYS_MEM_AVAIL \534 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL 535 | VBOX_GUEST_STAT_PHYS_MEM_AVAIL 534 536 | VBOX_GUEST_STAT_PAGE_FILE_SIZE; 535 537 #ifdef VBOX_WITH_MEMBALLOON … … 575 577 req.guestStats.u32CpuLoad_User = (uint32_t)(u64DeltaUser * 100 / u64DeltaAll); 576 578 577 req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_CPU_LOAD_IDLE \578 | VBOX_GUEST_STAT_CPU_LOAD_KERNEL \579 req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_CPU_LOAD_IDLE 580 | VBOX_GUEST_STAT_CPU_LOAD_KERNEL 579 581 | VBOX_GUEST_STAT_CPU_LOAD_USER; 580 582 fCpuInfoAvail = true;
Note:
See TracChangeset
for help on using the changeset viewer.