projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rearrange badip files and code
[spider.git]
/
perl
/
Mrtg.pm
diff --git
a/perl/Mrtg.pm
b/perl/Mrtg.pm
index d048fa57727d464c9b9ddfc53c49a4a9b34bf05e..d95c41cb19ed65bd46c7ead69d341904959f4638 100644
(file)
--- a/
perl/Mrtg.pm
+++ b/
perl/Mrtg.pm
@@
-37,7
+37,6
@@
Imagedir: $self->{html}
Logdir: $self->{dir}
Options[_]: growright
Timezone[_]: GMT
Logdir: $self->{dir}
Options[_]: growright
Timezone[_]: GMT
-RouterName: $main::call
##
##
EOF
##
##
EOF
@@
-69,8
+68,9
@@
sub data
sub cfgprint
{
sub cfgprint
{
- my ($self, $name, $options, $max, $title, $legend, $iname, $oname) = @_;
+ my ($self, $name, $options, $max, $title, $legend, $iname, $oname
, $yticsfactor
) = @_;
my $opt = join ', ', @$options, qw(withzeroes growright nopercent integer);
my $opt = join ', ', @$options, qw(withzeroes growright nopercent integer);
+ $yticsfactor ||= 1;
$self->{mc}->print(<<"EOF");
$self->{mc}->print(<<"EOF");
@@
-83,7
+83,7
@@
MaxBytes[$name]: $max
Title[$name]: $title
Options[$name]: $opt
YLegend[$name]: $legend
Title[$name]: $title
Options[$name]: $opt
YLegend[$name]: $legend
-YTicsFactor[$name]:
1
+YTicsFactor[$name]:
$yticsfactor
ShortLegend[$name]: \
Legend1[$name]:Maximum No of $iname
Legend2[$name]:Maximum No of $oname
ShortLegend[$name]: \
Legend1[$name]:Maximum No of $iname
Legend2[$name]:Maximum No of $oname