minor bug fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2990 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
8a7f79488a
commit
ae9b42a5f3
@ -57,8 +57,11 @@ sub start
|
||||
my $value=5; #default
|
||||
my %settings=xCAT_monitoring::monitorctrl->getPluginSettings("pcpmon");
|
||||
|
||||
my $reading=$settings{'ping-interval'};
|
||||
if ($reading>0) { $value=$reading;}
|
||||
my $reading;
|
||||
if (exists($settings{'ping-interval'})) {
|
||||
$reading=$settings{'ping-interval'};;
|
||||
if ($reading>0) { $value=$reading;}
|
||||
}
|
||||
|
||||
#create the cron job, it will run the command every 5 minutes(default and can be changed).
|
||||
my $newentry;
|
||||
|
@ -131,8 +131,11 @@ sub startNodeStatusMon
|
||||
#foreach (keys(%settings)) {
|
||||
# print "key=$_, value=$settings{$_}\n";
|
||||
#}
|
||||
my $reading=$settings{'ping-interval'};
|
||||
if ($reading>0) { $value=$reading;}
|
||||
my $reading;
|
||||
if (exists($settings{'ping-interval'})) {
|
||||
$reading=$settings{'ping-interval'};
|
||||
if ($reading>0) { $value=$reading;}
|
||||
}
|
||||
|
||||
#create the cron job, it will run the command every 3 minutes.
|
||||
my $newentry;
|
||||
|
Loading…
Reference in New Issue
Block a user