commit | db3ef44c5433aa50bae6f88736ad350fb14fc2cf | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Sat Nov 28 01:00:01 2015 +0100 |
committer | Stephen Hemminger <shemming@brocade.com> | Sun Nov 29 11:48:24 2015 -0800 |
tree | 8dc128b971d6ed4a99657a39491173ed6cc30067 | |
parent | fc31817d1f2ee8098b875a8b122f136a7564e339 [diff] |
lnstat: review lnstat_update() Instead of calling rewind() and fgets() before every call to scan_lines(), move them into scan_lines() itself. This should also fix compat mode, as before the second call to scan_lines() the first line was skipped unconditionally. Signed-off-by: Phil Sutter <phil@nwl.cc>