ports/sysutils/xosview/files/patch-swapmeter.cc
David E. O'Brien c9e00131ca Use longs vs. ints in calculating the amount of swap. This fixed getting
negative swap values on an Alpha with 2GB swap.  I should probably use
`long long' for large swap x86 machines.  (anybody want to help test?)
2001-08-21 18:33:51 +00:00

7 lines
212 B
C++

--- bsd/swapmeter.cc.orig Tue Aug 21 10:52:35 2001
+++ bsd/swapmeter.cc Tue Aug 21 10:53:02 2001
@@ -76,3 +76,3 @@
void SwapMeter::getswapinfo( void ){
- int total_int, free_int;
+ long total_int, free_int;