From 4ff2ceee33e24bab025eaa9ce547783e6cbab2db Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 21 Oct 2020 22:05:58 -0700 Subject: [PATCH] UI fix on rendering EC volumes addressing UI problem with https://github.com/chrislusf/seaweedfs/issues/1551 --- weed/storage/erasure_coding/ec_volume.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/storage/erasure_coding/ec_volume.go b/weed/storage/erasure_coding/ec_volume.go index 785f33ec4..71fe884df 100644 --- a/weed/storage/erasure_coding/ec_volume.go +++ b/weed/storage/erasure_coding/ec_volume.go @@ -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 }