From: Dave Nicolson Date: Mon, 17 Mar 2025 18:48:02 +0000 (+0100) Subject: tool_operate: fix pluralization of seconds X-Git-Tag: curl-8_13_0~72 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed0966643d39f48f6f989ddc65b863083664a99c;p=thirdparty%2Fcurl.git tool_operate: fix pluralization of seconds Closes #16751 --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 24e62d3fbb..426d1de347 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -644,10 +644,12 @@ static CURLcode post_per_transfer(struct GlobalConfig *global, } } warnf(config->global, "Problem %s. " - "Will retry in %ld seconds. " - "%ld %s left.", - m[retry], sleeptime/1000L, per->retry_remaining, - (per->retry_remaining > 1 ? "retries" : "retry")); + "Will retry in %ld second%s. " + "%ld retr%s left.", + m[retry], sleeptime/1000L, + (sleeptime/1000L == 1 ? "" : "s"), + per->retry_remaining, + (per->retry_remaining > 1 ? "ies" : "y")); per->retry_remaining--; if(!config->retry_delay) {