fix random volume ids in master.html (#7655)

This commit is contained in:
Trim21
2025-12-08 23:55:42 +08:00
committed by GitHub
parent 805950b401
commit 0a0eb21b86
2 changed files with 6 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ package topology
import (
"fmt"
"slices"
"sync/atomic"
"github.com/seaweedfs/seaweedfs/weed/glog"
@@ -289,6 +290,8 @@ func (dn *DataNode) GetVolumeIds() string {
ids = append(ids, int(k))
}
slices.Sort(ids)
return util.HumanReadableIntsMax(100, ids...)
}

View File

@@ -2,6 +2,7 @@ package topology
import (
"fmt"
"slices"
"sync"
"sync/atomic"
@@ -298,5 +299,7 @@ func (d *Disk) GetVolumeIds() string {
ids = append(ids, int(k))
}
slices.Sort(ids)
return util.HumanReadableIntsMax(100, ids...)
}