diff options
Diffstat (limited to 'src/cgtop/cgtop.c')
-rw-r--r-- | src/cgtop/cgtop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 3c7ad40605..a390cf3256 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -29,6 +29,7 @@ #include <getopt.h> #include "path-util.h" +#include "terminal-util.h" #include "util.h" #include "hashmap.h" #include "cgroup-util.h" @@ -447,7 +448,7 @@ static int display(Hashmap *a) { Group *g; Group **array; signed path_columns; - unsigned rows, n = 0, j, maxtcpu = 0, maxtpath = 0; + unsigned rows, n = 0, j, maxtcpu = 0, maxtpath = 3; /* 3 for ellipsize() to work properly */ char buffer[MAX3(21, FORMAT_BYTES_MAX, FORMAT_TIMESPAN_MAX)]; assert(a); |