1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

plugins: another round of defined(@array) fixing

This commit is contained in:
Steve Schnepp 2019-07-31 19:31:15 +02:00
parent c9cc2f27f6
commit a975706fff
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ if (!eval "require Linux::Smaps;") {
my $PNAME = exists $ENV{'pname'} ? $ENV{'pname'} : "httpd"; my $PNAME = exists $ENV{'pname'} ? $ENV{'pname'} : "httpd";
my $PUSER = exists $ENV{'puser'} ? $ENV{'puser'} : "apache"; my $PUSER = exists $ENV{'puser'} ? $ENV{'puser'} : "apache";
if (defined(@ARGV) && ($ARGV[0] eq 'config')) { if (@ARGV && ($ARGV[0] eq 'config')) {
print "graph_title Apache Smaps\n"; print "graph_title Apache Smaps\n";
print "graph_args --base 1024 -l 0\n"; print "graph_args --base 1024 -l 0\n";
print "graph_vlabel Bytes\n"; print "graph_vlabel Bytes\n";

View file

@ -242,7 +242,7 @@ sub populate_stats
# Bail-function. # Bail-function.
sub usage sub usage
{ {
if (defined(@_) && "@_" ne "") { if (@_ && "@_" ne "") {
print STDERR "@_" . "\n\n"; print STDERR "@_" . "\n\n";
} }
print STDERR "Known arguments: suggest, config, autoconf.\n"; print STDERR "Known arguments: suggest, config, autoconf.\n";