summaryrefslogtreecommitdiffstats
path: root/src/basic/exec-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/exec-util.c')
-rw-r--r--src/basic/exec-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c
index e0057a7572..49fb95e382 100644
--- a/src/basic/exec-util.c
+++ b/src/basic/exec-util.c
@@ -116,7 +116,7 @@ static int do_execute(
* default action terminating the process, and turn on alarm(). */
if (timeout != USEC_INFINITY)
- alarm((timeout + USEC_PER_SEC - 1) / USEC_PER_SEC);
+ alarm(DIV_ROUND_UP(timeout, USEC_PER_SEC));
STRV_FOREACH(path, paths) {
_cleanup_free_ char *t = NULL;