summary refs log tree commit diff
path: root/service.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-15 09:53:03 -0400
committerJune McEnroe <june@causal.agency>2020-08-15 09:53:03 -0400
commitf39d916e3a35527eb0d886506ac6fc70fa639070 (patch)
tree0fb74809fd14dbc03cf07fe7907fc3277ce186e2 /service.c
parentReap children (diff)
downloadcatsit-f39d916e3a35527eb0d886506ac6fc70fa639070.tar.gz
catsit-f39d916e3a35527eb0d886506ac6fc70fa639070.zip
Just use CLOCK_MONOTONIC and clean up includes
CLOCK_MONOTONIC exists everywhere.
Diffstat (limited to 'service.c')
-rw-r--r--service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service.c b/service.c
index 35d15f3..12f465f 100644
--- a/service.c
+++ b/service.c
@@ -111,7 +111,7 @@ err:
 }
 
 static void setDeadline(struct Service *service) {
-	clock_gettime(CLOCK_MONOTONIC_FAST, &service->restartDeadline);
+	clock_gettime(CLOCK_MONOTONIC, &service->restartDeadline);
 	timespecadd(
 		&service->restartDeadline, &service->restartInterval,
 		&service->restartDeadline