hide millseconds in up time (#7553)

This commit is contained in:
Trim21
2025-11-27 00:01:19 +08:00
committed by GitHub
parent b669607fcd
commit 7c7b673fc1
2 changed files with 4 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ import (
func (vs *VolumeServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", "SeaweedFS Volume "+version.VERSION)
infos := make(map[string]interface{})
infos["Up Time"] = time.Now().Sub(startTime).String()
infos["Up Time"] = time.Since(startTime).Truncate(time.Second).String()
var ds []*volume_server_pb.DiskStatus
for _, loc := range vs.store.Locations {
if dir, e := filepath.Abs(loc.Directory); e == nil {