info: Initialize boot time early so uptime will always be correct (#9154)

This commit is contained in:
Anis Elleuch
2020-03-18 00:37:28 +01:00
committed by GitHub
parent 59dced8237
commit 7fdeb44372
3 changed files with 3 additions and 9 deletions

View File

@@ -188,8 +188,8 @@ var (
// Global HTTP request statisitics
globalHTTPStats = newHTTPStats()
// Time when object layer was initialized on start up.
globalBootTime time.Time
// Time when the server is started
globalBootTime = UTCNow()
globalActiveCred auth.Credentials