chiark / gitweb /
cgtop: fix assert when not on tty
authorUmut Tezduyar Lindskog <umut.tezduyar@axis.com>
Wed, 11 Mar 2015 10:24:18 +0000 (11:24 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 11 Mar 2015 15:59:53 +0000 (16:59 +0100)
commit510c4a0f1e7e7efe2897d2fbb9067f121467b103
treec428ebb51826a3c36e1976a5a80c516f61155b05
parentf5b51ea7fcb0b6380c3ceb4d4f3f22f647c6fd32
cgtop: fix assert when not on tty

systemd-cgtop --dept=1 -b -n 10 -d 0.1 | cat

Assertion 'new_length >= 3' failed at src/shared/util.c:3 \
595, function ellipsize_mem(). Aborting.
Aborted (core dumped)

(David: add comment)
src/cgtop/cgtop.c