From 2ce4f9fbf61ab46ca8098952b64d5e1d29cdb4ce Mon Sep 17 00:00:00 2001 From: TapTap Date: Sat, 8 Aug 2026 20:27:44 +0200 Subject: [PATCH] style: format protocol deadline calculation --- src/shared/protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/protocol.c b/src/shared/protocol.c index 4a8ff98..0528b6c 100644 --- a/src/shared/protocol.c +++ b/src/shared/protocol.c @@ -79,8 +79,8 @@ static int io_fd(int dir_fd, int file_descriptor) { static int deadline_remaining_ms(const struct timespec* deadline) { struct timespec now; clock_gettime(CLOCK_MONOTONIC, &now); - long long ns = (long long)(deadline->tv_sec - now.tv_sec) * 1000000000LL + - deadline->tv_nsec - now.tv_nsec; + long long ns = + (long long)(deadline->tv_sec - now.tv_sec) * 1000000000LL + deadline->tv_nsec - now.tv_nsec; if (ns <= 0) return 0; long long ms = (ns + 999999) / 1000000;