From 068aee6c4ee553f7774ef02e51ee7f125baa98de Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Fri, 7 Nov 2014 13:33:59 -0500 Subject: format --- fsbm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fsbm.c') diff --git a/fsbm.c b/fsbm.c index 8fd2408..9e12ed4 100644 --- a/fsbm.c +++ b/fsbm.c @@ -98,7 +98,7 @@ void print_stats() { len = name - buf; // Parse the statistics, alls well, then get this shit going, otherwise f it. - if (sscanf(stats, "%Lu %*Lu %*Lu %*Lu %*Lu %*Lu %*Lu %*Lu %Lu", + if(sscanf(stats, "%Lu %*Lu %*Lu %*Lu %*Lu %*Lu %*Lu %*Lu %Lu", &rx_bytes, &tx_bytes) == 2) { size_t i = 0; @@ -119,7 +119,7 @@ void print_stats() { // print our new speeds timeDelta = (timestamp.tv_sec - interfaces[i].timestamp.tv_sec) * 1.0 + - (timestamp.tv_usec - interfaces[i].timestamp.tv_usec) * .000001; + (timestamp.tv_usec - interfaces[i].timestamp.tv_usec) * .000001; rx_speed = (rx_bytes - interfaces[i].rx_bytes) / timeDelta; tx_speed = (tx_bytes - interfaces[i].tx_bytes) / timeDelta; -- cgit v1.2.3