• Phil Sutter's avatar
    lnstat: fix header displaying mechanism · fdb347f7
    Phil Sutter authored
    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: e7e2913f ("lnstat: run indefinitely by default")
    Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
    fdb347f7
lnstat.c 8.75 KB