]> git.proxmox.com Git - mirror_iproute2.git/commit
lnstat: fix header displaying mechanism
authorPhil Sutter <phil@nwl.cc>
Wed, 18 Nov 2015 15:57:47 +0000 (16:57 +0100)
committerStephen Hemminger <shemming@brocade.com>
Mon, 23 Nov 2015 23:54:05 +0000 (15:54 -0800)
commitfdb347f7fd6c36b270a8c571cbe9a124a281b2b5
tree85c21fbdb785b5daf621bb85cb3b4f44dcda64e9
parent869fcabecc3f544c1ba17c8c2ee5a9c9296126dd
lnstat: fix header displaying mechanism

The algorithm depends on the loop counter ('i') to increment by one in
each iteration. Though if running endlessly (count==0), the counter was
not incremented at all.

Also change formatting of the header printing conditional a bit so it's
hopefully easier to read.

Fixes: e7e2913 ("lnstat: run indefinitely by default")
Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/lnstat.c