diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-09-06 10:42:27 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-09-06 10:42:27 +0000 |
commit | 87911281d2219fdc5a112b0a3fcbb654af7ff9e5 (patch) | |
tree | 124a124f1256c8b2e69d4847b216010b6ab1da2a /src | |
parent | 73d269669df0f8acab50286fd4e27490e93a334d (diff) | |
download | s6-portable-utils-87911281d2219fdc5a112b0a3fcbb654af7ff9e5.tar.gz s6-portable-utils-87911281d2219fdc5a112b0a3fcbb654af7ff9e5.tar.xz s6-portable-utils-87911281d2219fdc5a112b0a3fcbb654af7ff9e5.zip |
Adapt to new stopwatch API
Diffstat (limited to 'src')
-rw-r--r-- | src/skaembutils/s6-maximumtime.c | 3 | ||||
-rw-r--r-- | src/skaembutils/s6-sleep.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/skaembutils/s6-maximumtime.c b/src/skaembutils/s6-maximumtime.c index 30161dd..5745eb2 100644 --- a/src/skaembutils/s6-maximumtime.c +++ b/src/skaembutils/s6-maximumtime.c @@ -59,8 +59,7 @@ int main (int argc, char const *const *argv, char const *const *envp) pid = child_spawn0(argv[1], argv+1, envp) ; if (!pid) strerr_diefu2sys(111, "spawn ", argv[1]) ; - tain_now_set_stopwatch() ; - tain_now_g() ; + tain_now_set_stopwatch_g() ; tain_add_g(&deadline, &deadline) ; for (;;) diff --git a/src/skaembutils/s6-sleep.c b/src/skaembutils/s6-sleep.c index 75162f1..27da2b2 100644 --- a/src/skaembutils/s6-sleep.c +++ b/src/skaembutils/s6-sleep.c @@ -35,8 +35,7 @@ int main (int argc, char const *const *argv, char const *const *envp) tain_t deadline ; if (milli) tain_from_millisecs(&deadline, n) ; else tain_uint(&deadline, n) ; - tain_now_set_stopwatch() ; - tain_now_g() ; + tain_now_set_stopwatch_g() ; tain_add_g(&deadline, &deadline) ; deepsleepuntil_g(&deadline) ; } |