summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/ktrdump/ktrdump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ktrdump/ktrdump.c b/usr.bin/ktrdump/ktrdump.c
index 083370c..ef21c56 100644
--- a/usr.bin/ktrdump/ktrdump.c
+++ b/usr.bin/ktrdump/ktrdump.c
@@ -253,7 +253,8 @@ main(int ac, char **av)
if (rflag) {
if (tlast == -1)
tlast = tnow;
- fprintf(out, "%16ju ", tnow - tlast);
+ fprintf(out, "%16ju ", !iflag ? tlast - tnow :
+ tnow - tlast);
tlast = tnow;
} else
fprintf(out, "%16ju ", tnow);
OpenPOWER on IntegriCloud