diff options
author | jonathan <jonathan@pkgsrc.org> | 1998-03-31 21:42:01 +0000 |
---|---|---|
committer | jonathan <jonathan@pkgsrc.org> | 1998-03-31 21:42:01 +0000 |
commit | d0add27bcfefc1067f6cbe678df0c56256f5efe6 (patch) | |
tree | 9ff7388ef35ac0ff3176ab9136c3cf83f563740c /graphics/xplot | |
parent | 16e1a6697193bb191a1925762066e46b1d271431 (diff) | |
download | pkgsrc-d0add27bcfefc1067f6cbe678df0c56256f5efe6.tar.gz |
Fix long-standing bug in xplot's parsing of timevals, which causes
tcpdump2xplot output to show as starting at (in PST) 16:00:00, and for
time to wrap on long traces.
Re-submitted to Tim Shepard for inclusion in the next release.
Diffstat (limited to 'graphics/xplot')
-rw-r--r-- | graphics/xplot/patches/patch-ad | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/xplot/patches/patch-ad b/graphics/xplot/patches/patch-ad new file mode 100644 index 00000000000..eb43212ebc5 --- /dev/null +++ b/graphics/xplot/patches/patch-ad @@ -0,0 +1,16 @@ +--- timeval.c.DIST Fri Jun 28 12:41:21 1996 ++++ timeval.c Mon Mar 30 19:58:50 1998 +@@ -102,6 +102,13 @@ + r.t.tv_sec = atoi(s); + while (isdigit(*s)) s++; + ++ while (*s == ':') { ++ s++; ++ r.t.tv_sec *= 60; ++ r.t.tv_sec += atoi(s); ++ while (isdigit(*s)) s++; ++ } ++ + if (*s == '.') { + s++; + r.t.tv_usec = atoi(s); |