mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
system: small refactor for clarity
This commit is contained in:
parent
97b08eec0c
commit
31593b1e6f
@ -141,14 +141,9 @@ while (1) {
|
||||
}
|
||||
}
|
||||
|
||||
/* react to alarm if backend action was given */
|
||||
if ($alarm) {
|
||||
if ($action != null) {
|
||||
configd_run($action);
|
||||
}
|
||||
/* XXX this blacks out all alarms for the grace period after alarm */
|
||||
sleep($wait);
|
||||
} else {
|
||||
sleep($poll);
|
||||
if ($alarm && $action != null) {
|
||||
configd_run($action);
|
||||
}
|
||||
|
||||
sleep($alarm ? $wait : $poll);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user