tool_operate: Improve wording in retry message

- Use the plural 'seconds' for anything other than exactly 1 second.

Before: Will retry in 1.250 second.
After: Will retry in 1.250 seconds.

Follow-up to ca034e83.

Closes https://github.com/curl/curl/pull/18604
This commit is contained in:
Jay Satiro 2025-09-18 11:38:20 -04:00
parent 54aff4db3c
commit ce354d0f4d

View file

@ -480,7 +480,7 @@ static CURLcode retrycheck(struct OperationConfig *config,
(sleeptime%1000L ? "." : ""),
(sleeptime%1000L ? 3 : 0),
sleeptime%1000L,
(sleeptime/1000L == 1 ? "" : "s"),
(sleeptime == 1000L ? "" : "s"),
per->retry_remaining,
(per->retry_remaining > 1 ? "ies" : "y"));