[mrtg] cfgmaker and kbits/s

dmaxwell at sturgeon.irngtx.tel.gte.com dmaxwell at sturgeon.irngtx.tel.gte.com
Tue Jan 30 20:23:35 MET 2001

In MRTG 2.9.4, cfgmaker handles global options for "growright, bits" as
I wish.

The cfgmaker perl script has a sub routine that suggests a way to pass an
option to tell it that the displayed "Max Speed" value for the interface
should be in bits.  A partial extract of the sub looks like this:

sub fmi ($$) {
    my $number = shift;
    my $opt = shift;
    if (grep /^options\[[_^\$]\].+bits/i, @{$$opt{"global"}}){
	@short = ("bits/s","kbits/s","Mbits/s","Gbits/s");
    } else {
	@short = ("Bytes/s","kBytes/s","MBytes/s","GBytes/s");

What option should I give cfgmaker to use bits and kbits instead of bytes
and kBytes?



Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list