commit 0dd7f1732a7623929691d12e937211303d6dbd71
parent 430d7251faa8f3eb28a6f58856235f2a6305da1b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 26 Dec 2021 11:58:08 +0300
mhd_mono_clock: fixed comment
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/mhd_mono_clock.c b/src/microhttpd/mhd_mono_clock.c
@@ -215,8 +215,7 @@ MHD_monotonic_sec_counter_init (void)
else
#endif /* CLOCK_MONOTONIC_RAW */
#ifdef CLOCK_BOOTTIME
- /* Linux-specific clock */
- /* Count time in suspend so it's real monotonic on Linux, */
+ /* Count time in suspend on Linux so it's real monotonic, */
/* but can be slower value-getting than other clocks */
if (0 == clock_gettime (CLOCK_BOOTTIME,
&ts))
@@ -239,7 +238,7 @@ MHD_monotonic_sec_counter_init (void)
mono_clock_source = _MHD_CLOCK_GETTIME;
}
else
-#endif /* CLOCK_BOOTTIME */
+#endif /* CLOCK_MONOTONIC */
#ifdef CLOCK_UPTIME
/* non-Linux clock */
/* Doesn't count time in suspend */