From f969b89cc0a4228289d71877a873e653926ca319 Mon Sep 17 00:00:00 2001 From: Mark Wong Date: Wed, 8 Apr 2020 00:14:11 +0000 Subject: 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. --- display.c | 4 ++-- 1 file 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) -- cgit v1.2.3