mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
parent
b12d9b8598
commit
2268d38263
|
@ -63,7 +63,7 @@ func (c *commandS3BucketList) Do(args []string, commandEnv *CommandEnv, writer i
|
||||||
collectionSize = collectionInfo.Size
|
collectionSize = collectionInfo.Size
|
||||||
fileCount = collectionInfo.FileCount - collectionInfo.DeleteCount
|
fileCount = collectionInfo.FileCount - collectionInfo.DeleteCount
|
||||||
}
|
}
|
||||||
fmt.Fprintf(writer, " %s\tsize:%.0f\tfile:%.0f", entry.Name, collectionSize, fileCount)
|
fmt.Fprintf(writer, " %s\tsize:%.0f\tchunk:%.0f", entry.Name, collectionSize, fileCount)
|
||||||
if entry.Quota > 0 {
|
if entry.Quota > 0 {
|
||||||
fmt.Fprintf(writer, "\tquota:%d\tusage:%.2f%%", entry.Quota, float64(collectionSize)*100/float64(entry.Quota))
|
fmt.Fprintf(writer, "\tquota:%d\tusage:%.2f%%", entry.Quota, float64(collectionSize)*100/float64(entry.Quota))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue