sbm

simple bandwidth monitor
git clone git://git.2f30.org/sbm
Log | Files | Refs | LICENSE

commit d1c5d4717203090746e25bad767c41414b46e837
parent 599b2293f0435b849393f5579610cd7da6cc1ae2
Author: sin <sin@2f30.org>
Date:   Tue, 23 Feb 2016 10:11:14 +0000

Rename msleep() to tvsleep()

Diffstat:
Msbm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sbm.c b/sbm.c @@ -213,7 +213,7 @@ tv2ms(struct timeval *tv) } int -msleep(struct timeval *tv) +tvsleep(struct timeval *tv) { struct timespec ts; @@ -235,7 +235,7 @@ loop(char *ifname, long count, struct timeval *delay) getmonotime(&old); sample(ifname, &oldrxbytes, &oldtxbytes, &oldrxpps, &oldtxpps); for (;;) { - msleep(delay); + tvsleep(delay); sample(ifname, &rxbytes, &txbytes, &rxpps, &txpps); getmonotime(&now); timersub(&now, &old, &diff);