Don't refresh status if status_refresh is 0

This commit is contained in:
2026-04-21 02:29:56 -05:00
parent 1e370fcf2e
commit 20862ee002

View File

@@ -187,7 +187,7 @@ int main(int argc, char** argv) {
running = 1;
while (daemon != NULL && running == 1) {
time_t now = time(NULL);
if (queued_time <= now - status_refresh) {
if (status_refresh > 0 && queued_time <= now - status_refresh) {
queued_time = now;
report_queued = 1;
}