summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-12-09 14:27:03 +0000
committernjl <njl@FreeBSD.org>2005-12-09 14:27:03 +0000
commitf71899b1d5e801c8262e4b539c983cac5f776a83 (patch)
tree2fed9cbdd8cb4e79f686d89cc3c5453b43a3a98b /usr.bin
parent45ca2a8268774a98128ca898d0e5f0bba7628fb5 (diff)
downloadFreeBSD-src-f71899b1d5e801c8262e4b539c983cac5f776a83.zip
FreeBSD-src-f71899b1d5e801c8262e4b539c983cac5f776a83.tar.gz
Really fix the relative timestamp bug. It was only incorrect for the ALQ
case. It seems entries are in reverse order when read from the kernel memory but in the right order when read from a file (i.e. ALQ). Handle both cases. MFC after: 1 day
Diffstat (limited to 'usr.bin')
-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