diff options
| author | Federico Angelilli <code@fedang.net> | 2024-11-11 23:26:33 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-11-11 23:26:33 +0100 |
| commit | 3f2af32442b9384d316651d42ad35945533dc39e (patch) | |
| tree | 90a163eb546b7b11de5a0341a71950f6726c4032 /src/comet.c | |
| parent | 2907d743760f74a01a77dca91c4f74ac849517b5 (diff) | |
Add timespec utils
Diffstat (limited to 'src/comet.c')
| -rw-r--r-- | src/comet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comet.c b/src/comet.c index 6fccb3d..a539015 100644 --- a/src/comet.c +++ b/src/comet.c @@ -124,7 +124,7 @@ int main(int argc, char **argv) layout_free(&layout); timespec_get(&end, TIME_UTC); - diff = timespec_diff(timespec_diff(end, start), rate); + diff = timespec_diff(rate, timespec_diff(end, start)); nanosleep(&diff, NULL); } |
