diff --git a/src/status.c b/src/status.c index c3995d1..56ff2e3 100644 --- a/src/status.c +++ b/src/status.c @@ -102,7 +102,7 @@ status_update_entry(int relay_id, int is_on) void status_broadcast(struct mg_mgr *mgr) { - if(timer && (timer - time(NULL) < 10)) + if(timer && (time(NULL) - timer < 10)) { return; }