VirtualBox

Changeset 14341 in vbox


Ignore:
Timestamp:
Nov 19, 2008 9:26:58 AM (16 years ago)
Author:
vboxsync
Message:

Divide by 1024.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/win/PerformanceWin.cpp

    r12594 r14341  
    310310    if (GlobalMemoryStatusEx(&mstat))
    311311    {
    312         *total = (ULONG)( mstat.ullTotalPhys / 1000 );
    313         *available = (ULONG)( mstat.ullAvailPhys / 1000 );
     312        *total = (ULONG)( mstat.ullTotalPhys / 1024 );
     313        *available = (ULONG)( mstat.ullAvailPhys / 1024 );
    314314        *used = *total - *available;
    315315    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette