summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/icmp6.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/systat/icmp6.c')
-rw-r--r--usr.bin/systat/icmp6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/icmp6.c b/usr.bin/systat/icmp6.c
index 366d026..2a3bbb7 100644
--- a/usr.bin/systat/icmp6.c
+++ b/usr.bin/systat/icmp6.c
@@ -137,7 +137,7 @@ domode(struct icmp6stat *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