diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-26 11:58:08 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-26 12:41:49 +0300 |
commit | 0dd7f1732a7623929691d12e937211303d6dbd71 (patch) | |
tree | 02e5b42c363c2eeb234feefb681826bfc8772d19 | |
parent | 430d7251faa8f3eb28a6f58856235f2a6305da1b (diff) | |
download | libmicrohttpd-0dd7f1732a7623929691d12e937211303d6dbd71.tar.gz libmicrohttpd-0dd7f1732a7623929691d12e937211303d6dbd71.zip |
mhd_mono_clock: fixed comment
-rw-r--r-- | src/microhttpd/mhd_mono_clock.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_mono_clock.c b/src/microhttpd/mhd_mono_clock.c index e06f6d16..b04153f8 100644 --- a/src/microhttpd/mhd_mono_clock.c +++ b/src/microhttpd/mhd_mono_clock.c | |||
@@ -215,8 +215,7 @@ MHD_monotonic_sec_counter_init (void) | |||
215 | else | 215 | else |
216 | #endif /* CLOCK_MONOTONIC_RAW */ | 216 | #endif /* CLOCK_MONOTONIC_RAW */ |
217 | #ifdef CLOCK_BOOTTIME | 217 | #ifdef CLOCK_BOOTTIME |
218 | /* Linux-specific clock */ | 218 | /* Count time in suspend on Linux so it's real monotonic, */ |
219 | /* Count time in suspend so it's real monotonic on Linux, */ | ||
220 | /* but can be slower value-getting than other clocks */ | 219 | /* but can be slower value-getting than other clocks */ |
221 | if (0 == clock_gettime (CLOCK_BOOTTIME, | 220 | if (0 == clock_gettime (CLOCK_BOOTTIME, |
222 | &ts)) | 221 | &ts)) |
@@ -239,7 +238,7 @@ MHD_monotonic_sec_counter_init (void) | |||
239 | mono_clock_source = _MHD_CLOCK_GETTIME; | 238 | mono_clock_source = _MHD_CLOCK_GETTIME; |
240 | } | 239 | } |
241 | else | 240 | else |
242 | #endif /* CLOCK_BOOTTIME */ | 241 | #endif /* CLOCK_MONOTONIC */ |
243 | #ifdef CLOCK_UPTIME | 242 | #ifdef CLOCK_UPTIME |
244 | /* non-Linux clock */ | 243 | /* non-Linux clock */ |
245 | /* Doesn't count time in suspend */ | 244 | /* Doesn't count time in suspend */ |