fix swap sizes in FreeBSD, patch by edwin@mavetju.org
2003-10-20 Bastien Nocera <hadess@hadess.net> * swap.c: (glibtop_get_swap_p): fix swap sizes in FreeBSD, patch by edwin@mavetju.org
This commit is contained in:
committed by
Bastien Nocera
parent
ac8f958305
commit
adc9a55578
@@ -1,3 +1,8 @@
|
||||
2003-10-20 Bastien Nocera <hadess@hadess.net>
|
||||
|
||||
* swap.c: (glibtop_get_swap_p): fix swap sizes in FreeBSD,
|
||||
patch by edwin@mavetju.org
|
||||
|
||||
2003-10-20 Bastien Nocera <hadess@hadess.net>
|
||||
|
||||
* glibtop_machine.h:
|
||||
|
@@ -367,8 +367,8 @@ glibtop_get_swap_p (glibtop *server, glibtop_swap *buf)
|
||||
|
||||
buf->flags = _glibtop_sysdeps_swap;
|
||||
|
||||
buf->used = kvmsw[nswdev].ksw_used;
|
||||
buf->total = kvmsw[nswdev].ksw_total;
|
||||
buf->used = kvmsw[nswdev].ksw_used * getpagesize();
|
||||
buf->total = kvmsw[nswdev].ksw_total * getpagesize();
|
||||
|
||||
buf->free = buf->total - buf->used;
|
||||
|
||||
|
Reference in New Issue
Block a user