mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
Use IEC units for byte counting everywhere
This commit is contained in:
@@ -49,7 +49,7 @@ func (v *BaseVirtualFolder) GetQuotaSummary() string {
|
||||
var result string
|
||||
result = "Files: " + strconv.Itoa(v.UsedQuotaFiles)
|
||||
if v.UsedQuotaSize > 0 {
|
||||
result += ". Size: " + utils.ByteCountSI(v.UsedQuotaSize)
|
||||
result += ". Size: " + utils.ByteCountIEC(v.UsedQuotaSize)
|
||||
}
|
||||
if v.LastQuotaUpdate > 0 {
|
||||
t := utils.GetTimeFromMsecSinceEpoch(v.LastQuotaUpdate)
|
||||
|
||||
Reference in New Issue
Block a user