mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 13:55:15 +02:00
jottacloud: minor improvement in quota info (omit if unlimited)
This commit is contained in:
committed by
Nick Craig-Wood
parent
22ee4151fd
commit
a1f935e815
@ -666,9 +666,12 @@ func (f *Fs) About() (*fs.Usage, error) {
|
||||
}
|
||||
|
||||
usage := &fs.Usage{
|
||||
Total: fs.NewUsageValue(info.Capacity),
|
||||
Used: fs.NewUsageValue(info.Usage),
|
||||
}
|
||||
if info.Capacity > 0 {
|
||||
usage.Total = fs.NewUsageValue(info.Capacity)
|
||||
usage.Free = fs.NewUsageValue(info.Capacity - info.Usage)
|
||||
}
|
||||
return usage, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user