aboutsummaryrefslogtreecommitdiff
path: root/fsbm.c
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-11-07 13:33:59 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2014-11-07 13:33:59 -0500
commit068aee6c4ee553f7774ef02e51ee7f125baa98de (patch)
tree0e2c7a5ba89aa3b51bfc94d697608911312e9677 /fsbm.c
parente2b782522773cda393358f83fd903564b53628e0 (diff)
format
Diffstat (limited to 'fsbm.c')
-rw-r--r--fsbm.c4
1 files changed, 2 insertions, 2 deletions
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;