respondd: improve if style

This commit is contained in:
lemoer 2016-09-10 03:05:04 +02:00
parent 3260989299
commit 0f29bd3c81
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ int64_t schedule_idle_time(struct request_schedule *s) {
update_time();
int64_t result = s->list_head->scheduled_time - now;
if (result == 0)
if (result <= 0)
return -1; // zero is infinity
else
return result;