projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix spawn_cmd in Cron so anyone can use it
[spider.git]
/
perl
/
Mrtg.pm
diff --git
a/perl/Mrtg.pm
b/perl/Mrtg.pm
index 29e1259a3d840c8abf1df2a1f3db057dfe9568ca..d95c41cb19ed65bd46c7ead69d341904959f4638 100644
(file)
--- a/
perl/Mrtg.pm
+++ b/
perl/Mrtg.pm
@@
-68,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");
@@
-82,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