diff options
Diffstat (limited to 'common/clock.c')
-rw-r--r-- | common/clock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/clock.c b/common/clock.c index 8eeb917af2..15df0abb48 100644 --- a/common/clock.c +++ b/common/clock.c @@ -84,8 +84,7 @@ uint32_t clocksource_hz2mult(uint32_t hz, uint32_t shift_constant) int is_timeout(uint64_t start_ns, uint64_t time_offset_ns) { - - if (start_ns + time_offset_ns < get_time_ns()) + if ((int64_t)(start_ns + time_offset_ns - get_time_ns()) < 0) return 1; else return 0; |