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:
linggao 2009-03-25 18:47:56 +00:00
parent 8a7f79488a
commit ae9b42a5f3
2 changed files with 10 additions and 4 deletions

View File

@ -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;

View File

@ -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;