From 3deea89851fbedaaa6bd51203473b744e38564fa Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Tue, 13 Jun 2017 22:45:44 +1000 Subject: [PATCH] [http_load_] get_cache_file_name doesn't need the $type Signed-off-by: Olivier Mehani --- plugins/http/http_load_ | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/http/http_load_ b/plugins/http/http_load_ index 2120a8f9..b483edfc 100755 --- a/plugins/http/http_load_ +++ b/plugins/http/http_load_ @@ -162,7 +162,6 @@ sub filter{ sub get_cache_file_name{ my $scriptname=$_[0]; my $id=$_[1]; - my $type=$_[2]; my $file=""; $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 . "... "; 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_category webserver\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 $count=0; @@ -558,7 +557,7 @@ if($ARGV[0] and $ARGV[0] eq "autoconf") { } exit(0); } 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"; my %cache=read_cache($cachefile); $debug && print "Number of lines in cache file: " . keys(%cache) . "\n";