]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: Improve wording in retry message
authorJay Satiro <raysatiro@yahoo.com>
Thu, 18 Sep 2025 15:38:20 +0000 (11:38 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 18 Sep 2025 16:09:02 +0000 (12:09 -0400)
- 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

src/tool_operate.c

index 4337cdee60067a2644f27b32e87df30e0f33ca24..75926d704ba4123b81f2df27c16de269646ea80e 100644 (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"));