Commit 8171cdc0 authored by Daniel Salzman's avatar Daniel Salzman

knotc: fix condition for results print

parent a8529d8b
......@@ -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);
}
......
Markdown is supported
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