1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-29 05:41:02 +02:00

UI fix on rendering EC volumes

addressing UI problem with https://github.com/chrislusf/seaweedfs/issues/1551
This commit is contained in:
Chris Lu 2020-10-21 22:05:58 -07:00
parent f5ee19e0db
commit 4ff2ceee33

View file

@ -145,9 +145,9 @@ func (ev *EcVolume) FileName() string {
}
func (ev *EcVolume) ShardSize() int64 {
func (ev *EcVolume) ShardSize() uint64 {
if len(ev.Shards) > 0 {
return ev.Shards[0].Size()
return uint64(ev.Shards[0].Size())
}
return 0
}