diff --git a/compctl.c b/compctl.c index 093bb88bf6236ba748f4fd71596045b80da7730c..ddeccc2f0efe54e0e6715aa8c37b6d1e117a7c49 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