Use bytes as units for memory consumption.

* procmem.c: Use bytes as units for memory consumption.
This commit is contained in:
Drazen Kacar
1999-05-08 17:39:54 +00:00
parent 82280b673e
commit bfd03680cc
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
1999-05-08 Drazen Kacar <dave@srce.hr>
* procmem.c: Use bytes as units for memory consumption.
1999-05-08 Drazen Kacar <dave@srce.hr>
* procuid.c: Fixed nice value.

View File

@@ -50,8 +50,8 @@ glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf,
if(glibtop_get_proc_data_psinfo_s(server, &psinfo, pid))
return;
buf->size = buf->vsize = psinfo.pr_size >> pagesize;
buf->resident = buf->rss = psinfo.pr_rssize >> pagesize;
buf->size = buf->vsize = psinfo.pr_size;
buf->resident = buf->rss = psinfo.pr_rssize;
buf->flags = _glibtop_sysdeps_proc_mem;
}