summaryrefslogtreecommitdiff
path: root/src/basic/time-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/time-util.c')
-rw-r--r--src/basic/time-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/time-util.c b/src/basic/time-util.c
index 6a76b6551..a2b57f872 100644
--- a/src/basic/time-util.c
+++ b/src/basic/time-util.c
@@ -218,7 +218,7 @@ struct timespec *timespec_store(struct timespec *ts, usec_t u) {
assert(ts);
if (u == USEC_INFINITY ||
- u / USEC_INFINITY >= TIME_T_MAX) {
+ u / USEC_PER_SEC >= TIME_T_MAX) {
ts->tv_sec = (time_t) -1;
ts->tv_nsec = (long) -1;
return ts;