Commit 743d5655 authored by Petr Baudis's avatar Petr Baudis
Browse files

compctl --usage: Fix missing division by 1M

parent 6c26b57a
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment