mrtg 2.12.0 contains broken rateup code, and also generates improper CSS,
plus does not "decently" support setups where XSize/YSize are used in
mrtg.cfg (the newly-added CSS hard-codes width/height of 500x135, rather
than letting the browser figure it out).
In the meantime, below is the patch for rateup.c which fixes the
problem of graphs being drawn as if "Unscaled" was set. The other few
bugs will have to wait, as they're cosmetic, although the XSize/YSize
one is quite annoying...
All of these problems will be addressed in 2.12.1 says Tobias, as I've
been in Email contact with him quite a lot this morning about such
Fix: Add this patch to files/, naturally. This comes from Tobias, BTW.
/* multiplicator for bits/bytes */
+ maxv = (long long) max (maxvi, maxvo);
maxvi = maxvi < (long long) 0 ? -maxvi : maxvi;
maxvo = maxvo < (long long) 0 ? -maxvo : maxvo;
origmaxvi = maxvi;
@@ -328,7 +329,6 @@
maxvi *= muli;
maxvo *= muli;
- maxv = (long long) max (maxvi, maxvo);
if (step > MONTH_SAMPLE)
type = 4;--TGaA5Ak1c1lXGFNFAX9Q2sjBxaHH9Z5Oc4wIwa4Lj33ZbO8v
Content-Type: text/plain; name="file.diff"
Content-Disposition: attachment; filename="file.diff"
--- src/rateup.c~ 2005-05-16 19:15:06.468444000 +0200
+++ src/rateup.c 2005-05-16 19:15:09.138421000 +0200
@@ -318,6 +318,7 @@
How-To-Repeat: Generate some graphs and see what I mean. :-)
Over to maintainer
Patch committed, thanks!