summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/ip6.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/systat/ip6.c')
-rw-r--r--usr.bin/systat/ip6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/ip6.c b/usr.bin/systat/ip6.c
index 4702885..5d2c210 100644
--- a/usr.bin/systat/ip6.c
+++ b/usr.bin/systat/ip6.c
@@ -142,7 +142,7 @@ domode(struct ip6stat *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