mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-20 21:57:03 -04:00
Fix query quota (#7237)
rinfo: added support for --iec also: added a missing \n to the generated output
This commit is contained in:
parent
ed6dcbebb1
commit
cd68f71d07
1 changed files with 3 additions and 3 deletions
|
|
@ -52,11 +52,11 @@ class RInfoMixIn:
|
|||
|
||||
response = repository.info()
|
||||
storage_quota = response["storage_quota"]
|
||||
used = format_file_size(response["storage_quota_use"])
|
||||
used = format_file_size(response["storage_quota_use"], iec=args.iec)
|
||||
|
||||
output += f"Storage quota: {used} used"
|
||||
output += f"\nStorage quota: {used} used"
|
||||
if storage_quota:
|
||||
output += f" out of {format_file_size(storage_quota)}"
|
||||
output += f" out of {format_file_size(storage_quota, iec=args.iec)}"
|
||||
output += "\n"
|
||||
|
||||
output += (
|
||||
|
|
|
|||
Loading…
Reference in a new issue