summaryrefslogtreecommitdiffstats
path: root/usr.bin/ktrdump
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-12-06 14:13:39 +0000
committernjl <njl@FreeBSD.org>2005-12-06 14:13:39 +0000
commit615d32b5e43b8dbf116e66bb3e9fe471c52ec082 (patch)
tree080d4058f3790fb59ae185e6ad795ffe4ae77dd8 /usr.bin/ktrdump
parentd1f4a1c280fc8fe13f22ff2ccf53578f98f55c41 (diff)
downloadFreeBSD-src-615d32b5e43b8dbf116e66bb3e9fe471c52ec082.zip
FreeBSD-src-615d32b5e43b8dbf116e66bb3e9fe471c52ec082.tar.gz
Fix -r flag to actually work. "now" comes after "then", not vice versa.
MFC after: 1 day
Diffstat (limited to 'usr.bin/ktrdump')
-rw-r--r--usr.bin/ktrdump/ktrdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ktrdump/ktrdump.c b/usr.bin/ktrdump/ktrdump.c
index 33b846e..083370c 100644
--- a/usr.bin/ktrdump/ktrdump.c
+++ b/usr.bin/ktrdump/ktrdump.c
@@ -253,7 +253,7 @@ main(int ac, char **av)
if (rflag) {
if (tlast == -1)
tlast = tnow;
- fprintf(out, "%16ju ", tlast - tnow);
+ fprintf(out, "%16ju ", tnow - tlast);
tlast = tnow;
} else
fprintf(out, "%16ju ", tnow);
OpenPOWER on IntegriCloud