small update

This commit is contained in:
Jordi Sanfeliu 2014-01-08 15:36:13 +01:00
parent ddc075b448
commit ec02689e77
1 changed files with 3 additions and 1 deletions

View File

@ -178,7 +178,9 @@ sub apcupsd_update {
if(open(EXEC, $apcupsd->{cmd} . " status " . $al[$e] . " |")) {
while(<EXEC>) { $data .= $_; }
close(EXEC);
} else {
}
if(!$data) {
logger("$myself: unable to execute '" . $apcupsd->{cmd} . "' command.");
$rrdata .= ":$linev:$loadc:$bchar:$timel:$mbatc:$ovolt:$ltran:$htran:$itemp:$battv:$linef:$nxfer:$nomov:$minti:$nomba:$humid:$atemp:0:0:0:0:0";
next;