Browse Source

fix: volume.list volume info output not in order (#6737)

pull/5783/merge
NyaMisty 2 days ago
committed by GitHub
parent
commit
8d0e6f1ead
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/shell/command_volume_list.go

2
weed/shell/command_volume_list.go

@ -190,7 +190,7 @@ func (c *commandVolumeList) writeDiskInfo(writer io.Writer, t *master_pb.DiskInf
diskType = types.HddType
}
slices.SortFunc(t.VolumeInfos, func(a, b *master_pb.VolumeInformationMessage) int {
return int(a.Id - b.Id)
return int(a.Id) - int(b.Id)
})
volumeInfosFound := false
for _, vi := range t.VolumeInfos {

Loading…
Cancel
Save