From af11bc7bc71da3775a51df197c1a50cb492381ab Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 7 Jul 2022 14:56:33 -0400 Subject: [PATCH] freebsd_network: Correct time_uptime. It should be in seconds, not ticks. --- src/libs/compat/freebsd_network/compat/sys/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/compat/freebsd_network/compat/sys/time.h b/src/libs/compat/freebsd_network/compat/sys/time.h index 869401926d..4efaf7e254 100644 --- a/src/libs/compat/freebsd_network/compat/sys/time.h +++ b/src/libs/compat/freebsd_network/compat/sys/time.h @@ -51,7 +51,7 @@ #define TICKS_2_MSEC(t) ((1000*(bigtime_t)t) / hz) #define MSEC_2_TICKS(t) (((bigtime_t)t*hz) / 1000) -#define time_uptime USEC_2_TICKS(system_time()) +#define time_uptime (system_time()/(1000*1000)) /* Operations on timevals. */