commit cc650acad6f6777b35045c3387a264a6dcc5ffab
parent c9d390f42df8f8311cac0a254c7819d93e3a7334
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 29 Aug 2021 19:09:31 +0300
MHD_monotonic_msec_counter(): fixed internal fallback
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/mhd_mono_clock.c b/src/microhttpd/mhd_mono_clock.c
@@ -457,5 +457,5 @@ MHD_monotonic_msec_counter (void)
return ((uint64_t) (gethrtime () - hrtime_start)) / 1000000;
#endif /* HAVE_GETHRTIME */
- return time (NULL) - sys_clock_start;
+ return (uint64_t) (time (NULL) - sys_clock_start) * 1000;
}