summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 29978fa)
raw | patch | inline | side by side (parent: 29978fa)
author | octo <octo> | |
Fri, 28 Apr 2006 17:18:03 +0000 (17:18 +0000) | ||
committer | octo <octo> | |
Fri, 28 Apr 2006 17:18:03 +0000 (17:18 +0000) |
src/swap.c | patch | blob | history |
diff --git a/src/swap.c b/src/swap.c
index e8f05d65ce90aca920fec9ba80eb87193c257f89..7dd8d680cc3b68dbe5cc4d82bebe5fed4dcf3fe2 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
if (sysctl (mib, 2, &sw_usage, &sw_usage_len, NULL, 0) != 0)
return;
- /* FIXME: If this doesn't return the right values, try multiplying it
- * with sw_usage.xsu_pagesize. -octo */
+ /* The returned values are bytes. */
swap_submit (sw_usage.xsu_used, sw_usage.xsu_avail, -1LL, -1LL);
/* #endif HAVE_SYS_SYSCTL_H */