Commit 41c430f1 authored by Mike Hibler's avatar Mike Hibler

Nit: old interval value for "batt" was never initialized so we wound up

with ugly "undefined variable" messages in the log.  Futureproof the
initialization.
parent 2d2ce4f6
...@@ -436,12 +436,9 @@ sub setintervals($) ...@@ -436,12 +436,9 @@ sub setintervals($)
if ($retry{check}); if ($retry{check});
my %oiv; my %oiv;
$oiv{check} = $iv{check}; foreach my $key (keys %iv) {
$oiv{isalive} = $iv{isalive}; $oiv{$key} = $iv{$key};
$oiv{drift} = $iv{drift}; }
$oiv{cvsup} = $iv{cvsup};
$oiv{rusage} = $iv{rusage};
$oiv{hkeys} = $iv{hkeys};
if ($tmccresults[0] =~ if ($tmccresults[0] =~
/INTERVAL=(-?\d+) ISALIVE=(-?\d+) NTPDRIFT=(-?\d+) CVSUP=(-?\d+) RUSAGE=(-?\d+) HOSTKEYS=(-?\d+)/) { /INTERVAL=(-?\d+) ISALIVE=(-?\d+) NTPDRIFT=(-?\d+) CVSUP=(-?\d+) RUSAGE=(-?\d+) HOSTKEYS=(-?\d+)/) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment