From: Daniel Stenberg Date: Wed, 12 Feb 2025 21:36:27 +0000 (+0100) Subject: timediff: fix comment for curlx_mstotv() X-Git-Tag: curl-8_13_0~492 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=196e6244712261032d67b98a3fd2c9e271f4a64e;p=thirdparty%2Fcurl.git timediff: fix comment for curlx_mstotv() The max value when explaining the math was wrong. Closes #16310 --- diff --git a/lib/timediff.c b/lib/timediff.c index d0824d1448..ebb733f987 100644 --- a/lib/timediff.c +++ b/lib/timediff.c @@ -44,7 +44,7 @@ struct timeval *curlx_mstotv(struct timeval *tv, timediff_t ms) if(ms > 0) { timediff_t tv_sec = ms / 1000; - timediff_t tv_usec = (ms % 1000) * 1000; /* max=999999 */ + timediff_t tv_usec = (ms % 1000) * 1000; /* max=999000 */ #ifdef HAVE_SUSECONDS_T #if TIMEDIFF_T_MAX > TIME_T_MAX /* tv_sec overflow check in case time_t is signed */