From 743d5655eee7b9fb0de5eeea8bcf92463a3adf4b Mon Sep 17 00:00:00 2001
From: Petr Baudis <pasky@ucw.cz>
Date: Thu, 1 Mar 2012 03:39:48 +0100
Subject: [PATCH] compctl --usage: Fix missing division by 1M

---
 compctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compctl.c b/compctl.c
index 093bb88..ddeccc2 100644
--- a/compctl.c
+++ b/compctl.c
@@ -136,7 +136,7 @@ usage(void)
 {
 	size_t usage = cgroup_get_mem_usage(chier, cgroup);
 	size_t limit = cgroup_get_mem_limit(chier, cgroup);
-	printf("Memory usage:\t%zuM / %zuM\n", usage, limit);
+	printf("Memory usage:\t%zuM / %zuM\n", usage / 1048576, limit / 1048576);
 }
 
 void
-- 
GitLab