diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2024-06-19 20:50:41 +0200 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2024-06-19 20:50:41 +0200 |
commit | 47984162974a8f7d9903d352567005ac569c5a87 (patch) | |
tree | ab265785ceaae0585aec80f6d5209e6289cbefd3 /src/ticker.c | |
parent | 9720c7efddf2d7595c9a0b021bc5fc6327c22bcf (diff) |
client: receive and display player list
Signed-off-by: Lizzy Fleckenstein <lizzy@vlhl.dev>
Diffstat (limited to 'src/ticker.c')
-rw-r--r-- | src/ticker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ticker.c b/src/ticker.c index d3c25b5..c0d7df9 100644 --- a/src/ticker.c +++ b/src/ticker.c @@ -13,7 +13,7 @@ static struct timespec timestamp_now() static uint64_t timestamp_diff(struct timespec a, struct timespec b) { - return NANOS * ((uint64_t) a.tv_sec - b.tv_sec) + ((int64_t) a.tv_nsec - b.tv_nsec); + return ((uint64_t) a.tv_sec - b.tv_sec) * NANOS + a.tv_nsec - b.tv_nsec; } void ticker_init(ticker *t, uint64_t f) |