diff options
author | Mark Wong <mark@2ndQuadrant.com> | 2020-04-08 00:14:11 +0000 |
---|---|---|
committer | Mark Wong <mark@2ndQuadrant.com> | 2020-04-08 00:14:11 +0000 |
commit | f969b89cc0a4228289d71877a873e653926ca319 (patch) | |
tree | ad6af81ebc2cc88afc889332ae4eac4ea8ef9b63 | |
parent | 232effb8e490663909a97b718bf03470d299776c (diff) |
Change display logic to show any non-negative values
Previously hid anything that was 0, which would display anything that
was negative. I think it's useful to see values that are 0 and then to
use negative values to indicate that a statistic isn't available.
-rw-r--r-- | display.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -543,8 +543,8 @@ summary_format_memory(int x, int y, long *numbers, char **names, int *cidx) num = *numbers++; color = 0; - /* display only non-zero numbers */ - if (num != 0) + /* display non-negative numbers */ + if (num >= 0) { /* write the previous name */ if (lastname != NULL) |