Changeset 116 for trunk/MacFaceFloat/StatusWindow.cs
- Timestamp:
- Dec 12, 2008, 11:39:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/StatusWindow.cs
r112 r116 154 154 155 155 ulong totalMemory = (ulong)memStats.TotalVisibleMemorySize * 1024; 156 double rate = (double)fh / (totalMemory * 1.5); 156 double rate; 157 158 MemoryUsage latestUsage = memStats.Latest; 159 if (latestUsage.Used + latestUsage.Available > totalMemory * 1.5) 160 { 161 rate = (double)fh / (totalMemory * 3.0);// (double)memStats.CommitLimit; 162 } 163 else 164 { 165 rate = (double)fh / (totalMemory * 1.5); 166 } 167 157 168 int border = (int)(totalMemory * rate); 158 169
Note: See TracChangeset
for help on using the changeset viewer.