summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/systat/ip.c')
-rw-r--r--usr.bin/systat/ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/ip.c b/usr.bin/systat/ip.c
index cad79b7..8e12a6a 100644
--- a/usr.bin/systat/ip.c
+++ b/usr.bin/systat/ip.c
@@ -146,7 +146,7 @@ domode(struct stat *ret)
switch(currentmode) {
case display_RATE:
sub = &oldstat;
- divisor = naptime;
+ divisor = (delay > 1000000) ? delay / 1000000 : 1;
break;
case display_DELTA:
sub = &oldstat;
OpenPOWER on IntegriCloud