summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Robin <benjarobin@users.noreply.github.com>2017-02-03 16:13:55 +0100
committerLennart Poettering <lennart@poettering.net>2017-02-03 16:13:55 +0100
commitd201d90838bd041b7fad5fce79861d0e5273e84e (patch)
treea6229c3e184c13ddcdde0e58718699eba36b04d6 /src
parent5c1d991f4080497b0300943bd5b0f65e55cf550a (diff)
time-util: Fix overflow check introduce in commit f977849 (#5216)
Diffstat (limited to 'src')
-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 4ced1bc6a1..a0db97c41a 100644
--- a/src/basic/time-util.c
+++ b/src/basic/time-util.c
@@ -212,7 +212,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;