sbm

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

commit 5dab06a15b26e3002ebe21a8d7f1b8467c6a58a3
parent b8b3f4c0983606485917ac6b1e699b69e727acba
Author: sin <sin@2f30.org>
Date:   Thu, 11 Feb 2016 20:19:07 +0000

Use sleep(1) as usleep() requires the argument to be < 1,000,000

Diffstat:
Msbm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbm.c b/sbm.c @@ -147,7 +147,7 @@ loop(char *ifname) (txbytes - oldtxbytes) * 8); oldrxbytes = rxbytes; oldtxbytes = txbytes; - usleep(1000 * 1000); + sleep(1); } }