From ce9a41a7c2cc9125724643857316da6f1607ca5b Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 26 Sep 2022 11:03:46 +0100 Subject: [PATCH] s, not ms --- src/x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x.c b/src/x.c index b9753145..de4afac6 100644 --- a/src/x.c +++ b/src/x.c @@ -649,8 +649,8 @@ bool x_fence_sync(xcb_connection_t *c, xcb_sync_fence_t f) { } struct timespec ts2 = {0}; clock_gettime(CLOCK_MONOTONIC, &ts2); - log_warn("x_fence_sync: %lf ms", (double)(ts2.tv_sec - ts.tv_sec) + - (double)(ts2.tv_nsec - ts.tv_nsec) / 1e9); + log_warn("x_fence_sync: %lf s", (double)(ts2.tv_sec - ts.tv_sec) + + (double)(ts2.tv_nsec - ts.tv_nsec) / 1e9); return true; err: