Fix query quota (#7237)

rinfo: added support for --iec

also: added a missing \n to the generated output
This commit is contained in:
Franco Ayala 2022-12-31 17:11:23 -03:00 committed by GitHub
parent ed6dcbebb1
commit cd68f71d07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 += (