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 $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_args --base 1024 -l 0\n";
print "graph_vlabel Bytes\n";

View File

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