From 0bcb1b679dd2d73a8c6714f670cddfebc18c8301 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 12 Nov 2020 14:18:59 -0800 Subject: [PATCH] fix: disallow update if dates are same (#10890) fixes #10889 --- cmd/admin-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/admin-handlers.go b/cmd/admin-handlers.go index 44793cbeb..d7fe3f3f6 100644 --- a/cmd/admin-handlers.go +++ b/cmd/admin-handlers.go @@ -126,7 +126,7 @@ func (a adminAPIHandlers) ServerUpdateHandler(w http.ResponseWriter, r *http.Req return } - if lrTime.Sub(crTime) < 0 { + if lrTime.Sub(crTime) <= 0 { updateStatus := madmin.ServerUpdateStatus{ CurrentVersion: Version, UpdatedVersion: Version,