Skip to content

Commit

Permalink
daemon: fix uint negative comparison
Browse files Browse the repository at this point in the history
Closes: #1036
Approved by: cgwalters
  • Loading branch information
jlebon authored and rh-atomic-bot committed Oct 4, 2017
1 parent 5db2389 commit 4501791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/rpmostreed-daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ update_status (RpmostreedDaemon *self)
guint64 readytime = g_source_get_ready_time (self->idle_exit_source);
guint64 curtime = g_source_get_time (self->idle_exit_source);
guint64 timeout_micros = readytime - curtime;
if (timeout_micros < 0)
if (readytime < curtime)
timeout_micros = 0;

g_assert (currently_idle && self->idle_exit_source);
Expand Down

0 comments on commit 4501791

Please sign in to comment.