On success, clear the last failure time

This commit is contained in:
Jamie Cameron
2018-03-07 20:39:04 -08:00
parent c63e06357f
commit d97eabdca5

View File

@@ -248,6 +248,11 @@ foreach $serv (@services) {
# Update old status hash
$oldstatus{$serv->{'id'}} = $newstatus_str;
# If successful, clear the last-sent time
if ($ok == 1) {
delete($lastsent{$serv->{'id'}});
}
}
# Close oldstatus, fails and lastsent files