fix random volume ids in master.html (#7655)
This commit is contained in:
@@ -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...)
|
||||
}
|
||||
|
||||
|
||||
@@ -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...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user