aboutsummaryrefslogtreecommitdiff
path: root/weed/server/master_server_handlers_ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/server/master_server_handlers_ui.go')
-rw-r--r--weed/server/master_server_handlers_ui.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/server/master_server_handlers_ui.go b/weed/server/master_server_handlers_ui.go
index 65195ee1e..157376f5b 100644
--- a/weed/server/master_server_handlers_ui.go
+++ b/weed/server/master_server_handlers_ui.go
@@ -1,10 +1,11 @@
package weed_server
import (
- "github.com/seaweedfs/seaweedfs/weed/util/version"
"net/http"
"time"
+ "github.com/seaweedfs/seaweedfs/weed/util/version"
+
hashicorpRaft "github.com/hashicorp/raft"
"github.com/seaweedfs/raft"
@@ -14,7 +15,7 @@ import (
func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) {
infos := make(map[string]interface{})
- infos["Up Time"] = time.Now().Sub(startTime).String()
+ infos["Up Time"] = time.Since(startTime).Truncate(time.Second).String()
infos["Max Volume Id"] = ms.Topo.GetMaxVolumeId()
ms.Topo.RaftServerAccessLock.RLock()