2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

[http_load_] get_cache_file_name doesn't need the $type

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2017-06-13 22:45:44 +10:00
parent ee72efe041
commit 3deea89851

View File

@ -162,7 +162,6 @@ sub filter{
sub get_cache_file_name{ sub get_cache_file_name{
my $scriptname=$_[0]; my $scriptname=$_[0];
my $id=$_[1]; my $id=$_[1];
my $type=$_[2];
my $file=""; my $file="";
$file = $scriptname . $id . ".cache"; $file = $scriptname . $id . ".cache";
@ -332,7 +331,7 @@ if($ARGV[0] and $ARGV[0] eq "autoconf") {
} }
} }
$cachefile=$cachedir . "/" . &get_cache_file_name($scriptname,$id,$type); $cachefile=$cachedir . "/" . &get_cache_file_name($scriptname,$id);
$debug && print "Reading cache file: " . $cachefile . "... "; $debug && print "Reading cache file: " . $cachefile . "... ";
my %input=read_cache($cachefile); my %input=read_cache($cachefile);
@ -367,7 +366,7 @@ if($ARGV[0] and $ARGV[0] eq "autoconf") {
print "graph_args -l 0 --base 1000\n"; print "graph_args -l 0 --base 1000\n";
print "graph_category webserver\n"; print "graph_category webserver\n";
$debug && print "Reading cache file\n"; $debug && print "Reading cache file\n";
my $cachefile=$cachedir . "/" . &get_cache_file_name($scriptname,$id,$type); my $cachefile=$cachedir . "/" . &get_cache_file_name($scriptname,$id);
my %cache=read_cache($cachefile); my %cache=read_cache($cachefile);
my $count=0; my $count=0;
@ -558,7 +557,7 @@ if($ARGV[0] and $ARGV[0] eq "autoconf") {
} }
exit(0); exit(0);
} else { } else {
my $cachefile=$cachedir . "/" . &get_cache_file_name($scriptname,$id,$type); my $cachefile=$cachedir . "/" . &get_cache_file_name($scriptname,$id);
$debug && print "Reading cache file: " . $cachefile . "\n"; $debug && print "Reading cache file: " . $cachefile . "\n";
my %cache=read_cache($cachefile); my %cache=read_cache($cachefile);
$debug && print "Number of lines in cache file: " . keys(%cache) . "\n"; $debug && print "Number of lines in cache file: " . keys(%cache) . "\n";