Skip to content
Snippets Groups Projects
Commit 8171cdc0 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

knotc: fix condition for results print

parent a8529d8b
No related branches found
No related tags found
No related merge requests found
......@@ -816,7 +816,7 @@ static int cmd_memstats(int argc, char *argv[], unsigned flags)
total_size += zone_size;
}
if (argc == 0) { // for all zones
if (rc == 0 && argc == 0) { // for all zones
log_zone_info("Estimated memory consumption for all zones is %zuMB.\n", total_size);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment