You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 08:00:39 UTC

[buildstream] 01/04: cascache.py: Pretty print the cache quota

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch jennis/cache_quota
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 52cddcb34642cccb022d5a2d5195eaf03417d573
Author: James Ennis <ja...@codethink.co.uk>
AuthorDate: Thu Apr 18 15:24:07 2019 +0100

    cascache.py: Pretty print the cache quota
---
 buildstream/_cas/cascache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildstream/_cas/cascache.py b/buildstream/_cas/cascache.py
index 5f67dc0..8d8f3f0 100644
--- a/buildstream/_cas/cascache.py
+++ b/buildstream/_cas/cascache.py
@@ -70,7 +70,7 @@ class CASCacheUsage():
     def __str__(self):
         return "{} / {} ({}%)" \
             .format(utils._pretty_size(self.used_size, dec_places=1),
-                    self.quota_config,
+                    utils._pretty_size(self.quota_size, dec_places=1),
                     self.used_percent)