update-notifier.go: misleading version age message (#17750)

This commit is contained in:
Sho Ce
2023-07-31 21:06:19 +05:30
committed by GitHub
parent 684c46369c
commit 49a1e2f98e
2 changed files with 23 additions and 23 deletions

View File

@@ -39,7 +39,7 @@ func prepareUpdateMessage(downloadURL string, older time.Duration) string {
// Compute friendly duration string to indicate time
// difference between newer and current release.
t := time.Time{}
newerThan := humanize.RelTime(t, t.Add(older), "ago", "")
newerThan := humanize.RelTime(t, t.Add(older), "before the latest release", "")
if globalCLIContext.JSON {
return fmt.Sprintf("You are running an older version of MinIO released %s, update: %s", newerThan, downloadURL)