summaryrefslogtreecommitdiff
path: root/graphics/xplot
diff options
context:
space:
mode:
authorjonathan <jonathan>1998-03-31 21:42:01 +0000
committerjonathan <jonathan>1998-03-31 21:42:01 +0000
commit03e339a9970e0f3c5f543db99995dd3fe6c5df52 (patch)
tree9ff7388ef35ac0ff3176ab9136c3cf83f563740c /graphics/xplot
parent6a53d6523da48ae21880dda38ef952c6396c6376 (diff)
downloadpkgsrc-03e339a9970e0f3c5f543db99995dd3fe6c5df52.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-ad16
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);