Summary: version string, remove comment

This commit is contained in:
bch 2017-02-18 21:14:12 +00:00
parent 8cc7e8fb06
commit 922ec78687

View File

@ -1,4 +1,4 @@
/* /* $Id: get_mem.c,v 1.3 2017/02/18 21:14:12 bch Exp $
* Adapted: get memory usage on OpenBSD * Adapted: get memory usage on OpenBSD
* Author: Christian Barthel <bch@vcs.onfire.org> * Author: Christian Barthel <bch@vcs.onfire.org>
* *
@ -83,13 +83,6 @@ void GetMemLoadPoint(Widget w, caddr_t closure, caddr_t call_data)
if (pageshift < 0) if (pageshift < 0)
initPageShift(); initPageShift();
/*ret.code = (double)(kb_main_used - kb_main_buffers - kb_main_cached) / kb_main_total;
ret.cached = (double)kb_main_cached / (double)kb_main_total;
ret.buffer = (double)kb_main_buffers / (double)kb_main_total;
ret.free = (double)kb_main_free / (double)kb_main_total;
ret.swap = (double)kb_swap_used / (double)kb_main_total;
*/
size = sizeof(uvmexp); size = sizeof(uvmexp);
if (sysctl(uvmexp_mib, 2, &uvmexp, &size, NULL, 0) < 0) { if (sysctl(uvmexp_mib, 2, &uvmexp, &size, NULL, 0) < 0) {
warn("sysctl failed"); warn("sysctl failed");