Changeset 98 for trunk/MacFaceFloat/StatusWindow.cs
- Timestamp:
- Dec 6, 2007, 3:36:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/StatusWindow.cs
r91 r98 129 129 int fh = memoryGraph.Height; 130 130 131 int totalMemory = (int)memStats.TotalVisibleMemorySize * 1024;131 ulong totalMemory = (ulong)memStats.TotalVisibleMemorySize * 1024; 132 132 double rate = (double)fh / (totalMemory * 1.5); 133 133 int border = (int)(totalMemory * rate); 134 134 135 135 g.FillRectangle(new SolidBrush(Color.White), 0, 0, fw, fh); … … 160 160 int h = 0; 161 161 162 longkernelTotal = usage.KernelNonPaged + usage.KernelPaged + usage.DriverTotal + usage.SystemCodeTotal;162 UInt64 kernelTotal = usage.KernelNonPaged + usage.KernelPaged + usage.DriverTotal + usage.SystemCodeTotal; 163 163 h = (int)((kernelTotal) * rate); 164 164 y -= h; … … 169 169 g.FillRectangle(systemCacheBrush, x, y, w, h); 170 170 171 h = (int)(usage.Committed* rate);171 h = (int)((usage.Committed - kernelTotal) * rate); 172 172 y -= h; 173 173 g.FillRectangle(commitedBrush, x, y, w, h);
Note: See TracChangeset
for help on using the changeset viewer.