Hi Sylvain,
On Mon, May 26, 2008 at 20:17:48 +0200, Sylvain Beucler wrote:
> I think there's a mistake in the graph's CDEF, more exactly when
> values are multiplied by $step (CDEF:drecv=recv,UN,0,recv,IF,$step,*).
> ...
> Unfortunately the archive uses 180 averages for 35 days (not 31), as
> it's created with a multiple of weekly rows:
> $month_steps = $week_steps*5 (cf. /usr/sbin/mailgraph).
You are right! Thanks for the bug report. I will fix it in the next
mailgraph.cgi in the same way as you propose it:
A straightforwarded "fix" is to change the graphs ranges:
my @graphs = (
{ title => 'Last Day', seconds => 3600*24, },
{ title => 'Last Week', seconds => 3600*24*7, },
# { title => 'Last Month', seconds => 3600*24*31, },
# { title => 'Last Year', seconds => 3600*24*365, },
{ title => 'Last Month', seconds => 3600*24*7*5, },
{ title => 'Last Year', seconds => 3600*24*7*5*12, },
);
Cheers
David
--
Unsubscribe mailto:mailgraph-request@list.ee.ethz.ch?subject=unsubscribe
Help mailto:mailgraph-request@list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/mailgraph
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
|