timer.c: cleanup printelapsedtime()
commitb087f62514d4156adacf1d01bde642509392eb78
authorVitezslav Samel <vitezslav@samel.cz>
Thu, 12 Jun 2014 09:40:06 +0000 (12 11:40 +0200)
committerNikola Pajkovsky <n.pajkovsky@gmail.com>
Thu, 19 Jun 2014 13:46:47 +0000 (20 01:46 +1200)
tree5e907a9b20e2e38648941b7eb1089e3ba82ae7c1
parent7520de9be9c80d70bfa820f3ac2a00695937580f
timer.c: cleanup printelapsedtime()

1) we are always printing to the last line of the given window, so get
   this value in here and don't pass it as arg to this function
2) compute elapsed time before calling printelapsedtime() and pass it as
   one arg only

Signed-off-by: Vitezslav Samel <vitezslav@samel.cz>
Signed-off-by: Nikola Pajkovsky <n.pajkovsky@gmail.com>
src/detstats.c
src/hostmon.c
src/ifstats.c
src/itrafmon.c
src/pktsize.c
src/serv.c
src/timer.c
src/timer.h