fix: disallow update if dates are same (#10890)

fixes #10889
This commit is contained in:
Harshavardhana
2020-11-12 14:18:59 -08:00
committed by GitHub
parent a3017c724e
commit 0bcb1b679d

View File

@@ -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,