summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wong <mark@2ndQuadrant.com>2020-04-08 00:14:11 +0000
committerMark Wong <mark@2ndQuadrant.com>2020-04-08 00:14:11 +0000
commitf969b89cc0a4228289d71877a873e653926ca319 (patch)
treead6af81ebc2cc88afc889332ae4eac4ea8ef9b63
parent232effb8e490663909a97b718bf03470d299776c (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/display.c b/display.c
index 9cf0688..ea77aa9 100644
--- a/display.c
+++ b/display.c
@@ -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)