Mailing List Archive

svn commit: r329674 - /spamassassin/trunk/masses/rule-qa/rule-hits-over-time
Author: jm
Date: Sun Oct 30 16:33:37 2005
New Revision: 329674

URL: http://svn.apache.org/viewcvs?rev=329674&view=rev
Log:
nice up the period name

Modified:
spamassassin/trunk/masses/rule-qa/rule-hits-over-time

Modified: spamassassin/trunk/masses/rule-qa/rule-hits-over-time
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/rule-qa/rule-hits-over-time?rev=329674&r1=329673&r2=329674&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/rule-hits-over-time (original)
+++ spamassassin/trunk/masses/rule-qa/rule-hits-over-time Sun Oct 30 16:33:37 2005
@@ -301,10 +301,16 @@

open (GP, "| gnuplot - > $tmpdir/gp.log 2>&1") or die "cannot run gnuplot";

+ # eye-candy
+ my $niceperiod = "$period secs";
+ if ($period % (24*60*60) == 0) {
+ $niceperiod = ($period / (24*60*60))." days";
+ }
+
# (NOTE: -1% hitrate means no data for that time period)'
print GP qq{

- set xlabel 'Time, in blocks of $period secs'
+ set xlabel 'Time, in blocks of $niceperiod'
set ylabel '$y_label'

set terminal png small \\