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 c3164672df210580e32cc844a33b97466960eafc..d95c41cb19ed65bd46c7ead69d341904959f4638 100644
(file)
--- a/
perl/Mrtg.pm
+++ b/
perl/Mrtg.pm
@@
-1,4
+1,4
@@
-#
+#
#
# the MRTG handler
#
# Copyright (c) - 2002 Dirk Koopman G1TLH
# the MRTG handler
#
# Copyright (c) - 2002 Dirk Koopman G1TLH
@@
-36,6
+36,7
@@
Htmldir: $self->{html}
Imagedir: $self->{html}
Logdir: $self->{dir}
Options[_]: growright
Imagedir: $self->{html}
Logdir: $self->{dir}
Options[_]: growright
+Timezone[_]: GMT
##
##
EOF
##
##
EOF
@@
-67,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");
@@
-81,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