Ignore:
Timestamp:
Dec 6, 2007, 3:36:02 PM (16 years ago)
Author:
rryu
Message:

メモリを2GB以上使っている場合でもステータスウインドウの表示がおかしくならないようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceLibrary/MemoryStatistics.cs

    r75 r98  
    2727                private PerformanceCounter commitLimitCounter;
    2828
    29                 private ulong totalVisibleMemorySize;
     29                private UInt64 totalVisibleMemorySize;
    3030
    3131                public MemoryStatistics(int historySize)
     
    105105                }
    106106
    107                 public ulong TotalVisibleMemorySize
     107                public UInt64 TotalVisibleMemorySize
    108108                {
    109109                        get { return totalVisibleMemorySize; }
     
    126126                protected virtual MemoryUsage NextValue()
    127127                {
    128                         int available      = (int)availableCounter.NextValue();
    129                         int committed      = (int)committedCounter.NextValue();
     128                        UInt64 available      = (UInt64)availableCounter.NextValue();
     129                        UInt64 committed      = (UInt64)committedCounter.NextValue();
    130130                        int pagein             = (int)pageinCounter.NextValue();
    131131                        int pageout        = (int)pageoutCounter.NextValue();
    132                         int systemCache    = (int)systemCacheCounter.NextValue();
    133                         int kernelPaged    = (int)kernelPagedCounter.NextValue();
    134                         int kernelNonPaged = (int)kernelNonPagedCounter.NextValue();
    135                         int driverTotal    = (int)driverTotalCounter.NextValue();
    136                         int systemCodeTotal = (int)systemCodeTotalCounter.NextValue();
     132                        UInt64 systemCache    = (UInt64)systemCacheCounter.NextValue();
     133                        UInt64 kernelPaged    = (UInt64)kernelPagedCounter.NextValue();
     134                        UInt64 kernelNonPaged = (UInt64)kernelNonPagedCounter.NextValue();
     135                        UInt64 driverTotal    = (UInt64)driverTotalCounter.NextValue();
     136                        UInt64 systemCodeTotal = (UInt64)systemCodeTotalCounter.NextValue();
    137137
    138138                        return new MemoryUsage(available, committed, pagein, pageout,
Note: See TracChangeset for help on using the changeset viewer.