VirtualBox

Changeset 10919 in vbox for trunk/src/VBox/Main/linux


Ignore:
Timestamp:
Jul 28, 2008 6:41:31 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33765
Message:

replaced getpagesize() with PAGE_SIZE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/linux/PerformanceLinux.cpp

    r10882 r10919  
    2222 */
    2323
    24 #include <unistd.h>
    2524#include <stdio.h>
    2625#include <iprt/alloc.h>
    2726#include <iprt/err.h>
     27#include <iprt/param.h>
    2828#include <iprt/string.h>
    2929#include "Performance.h"
     
    131131    {
    132132        Assert(getpagesize() >= 1024);
    133         *used = nPagesUsed * (getpagesize() / 1024);
     133        *used = nPagesUsed * (PAGE_SIZE / 1024);
    134134    }
    135135    return rc;
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