Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi All,
If perminute/perhour and also derive are set for one target, the
derive part gets ignored.
The offending code is here (line 596):
my $up_abs=3D"u";
$up_abs=3D'd' if defined $$rcfg{'options'}{'derive'}{$router};
$up_abs=3D'a' if defined $$rcfg{'options'}{'absolute'}{$router};
$up_abs=3D'g' if defined $$rcfg{'options'}{'gauge'}{$router};
$up_abs=3D'h' if defined $$rcfg{'options'}{'perhour'}{$router};
$up_abs=3D'm' if defined
$$rcfg{'options'}{'perminute'}{$router};
(jump to line 615)
my %dstype =3D qw/u COUNTER a ABSOLUTE g GAUGE h COUNTER m
COUNTER d DERI=
VE/;
$up_abs =3D $dstype{$up_abs};
If both derive and perminute are set, first $up_abs gets set to
'd', and than overwritten to 'm'. As $up_abs is used exclusively to set
the datasource type, I see no harm and a lot of gain in giving the
derive option precedence.
I've included a patch to change the order of the "if defined"
lines to put perminute and perhour above derive and absolute. (also=20
corrects a typo in a nearby comment)
Thanks to all of you for a great app. I hope this is helpful.
Best Regards,
Erek Dyskant
-- Attached file removed by Ecartis and put at URL below --
-- Type: text/plain
-- Size: 1017 bytes
-- URL : http://www.ee.ethz.ch/~slist/p/mrtg-perminute.patch
-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature
--
Unsubscribe mailto:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/mrtg-developers