plugins: another round of defined(@array) fixing
This commit is contained in:
parent
c9cc2f27f6
commit
a975706fff
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue