Vitezslav Samel <vitezslav(a)samel.cz> writes:
The test if we need to update the display is the same in 5 files;
make this a function: code is more readable, code is smaller,
code is (marginally) faster (I eliminated 64-bit multiply).
Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/deskman.c | 17 +++++++++++++++++
src/deskman.h | 1 +
src/detstats.c | 15 +++++----------
src/hostmon.c | 15 +++++----------
src/ifstats.c | 15 +++++----------
src/iptraf-ng-compat.h | 3 +++
src/itrafmon.c | 15 +++++----------
src/options.h | 2 --
src/packet.c | 2 +-
src/pktsize.c | 15 +++++----------
src/serv.c | 15 +++++----------
11 files changed, 52 insertions(+), 63 deletions(-)
applied. thanks.
--
Nikola