From c3a80da98846c21a5d3f32a91669d78774a0aa6a Mon Sep 17 00:00:00 2001 From: Graham Wilson Date: Mon, 30 Aug 2004 01:34:48 +0000 Subject: Move a handful of scripts (used for releases, testing, etc.) to dist-tools, so that they are not released in the tarball. svn path=/trunk/; revision=3934 --- dist-tools/timeplot | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 dist-tools/timeplot (limited to 'dist-tools/timeplot') diff --git a/dist-tools/timeplot b/dist-tools/timeplot new file mode 100755 index 00000000..c8240d05 --- /dev/null +++ b/dist-tools/timeplot @@ -0,0 +1,40 @@ +#!/bin/sh +# +# timeplot -- plot data on fetchmail release intervals +# +# + +# Get data from the NEWS file +timeseries | awk >/tmp/timeplot$$ ' +START {maxdiff = 0;} +/^[#%]/ {next;} + {days[count++] = $6;} +END { + for (i = 0; i < count-1; i++) + { + diffs[i] = days[i] - days[i + 1]; + if (maxdiff < diffs[i]) + maxdiff = diffs[i]; + } + for (i = 0; i <= maxdiff; i++) + freq[i] = 0; + for (i = 0; i < count - 1; i++) + { + freq[diffs[i]]++; + } + for (i = 0; i <= maxdiff; i++) + printf("%d %d\n", i, freq[i]); + } +' + +gnuplot >time.png - <