Révision a975706f
plugins: another round of defined(@array) fixing
| plugins/apache/apache_smaps | ||
|---|---|---|
| 37 | 37 |
my $PNAME = exists $ENV{'pname'} ? $ENV{'pname'} : "httpd";
|
| 38 | 38 |
my $PUSER = exists $ENV{'puser'} ? $ENV{'puser'} : "apache";
|
| 39 | 39 |
|
| 40 |
if (defined(@ARGV) && ($ARGV[0] eq 'config')) {
|
|
| 40 |
if (@ARGV && ($ARGV[0] eq 'config')) {
|
|
| 41 | 41 |
print "graph_title Apache Smaps\n"; |
| 42 | 42 |
print "graph_args --base 1024 -l 0\n"; |
| 43 | 43 |
print "graph_vlabel Bytes\n"; |
| plugins/other/proc_ | ||
|---|---|---|
| 242 | 242 |
# Bail-function. |
| 243 | 243 |
sub usage |
| 244 | 244 |
{
|
| 245 |
if (defined(@_) && "@_" ne "") {
|
|
| 245 |
if (@_ && "@_" ne "") {
|
|
| 246 | 246 |
print STDERR "@_" . "\n\n"; |
| 247 | 247 |
} |
| 248 | 248 |
print STDERR "Known arguments: suggest, config, autoconf.\n"; |
Formats disponibles : Unified diff