From 09a2b2fa4606d2b87652ffdbe008bc445f2e97fd Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 13 Jul 2020 00:59:44 -0400 Subject: [PATCH] wider labels --- lbry/console.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lbry/console.py b/lbry/console.py index 6b47b4b2f..f2ea6678b 100644 --- a/lbry/console.py +++ b/lbry/console.py @@ -357,7 +357,7 @@ class Advanced(Basic): bar_name = f"{name}#{d['id']}" bar = self.bars.get(bar_name) if bar is None: - label = d.get('label', name[-10:]) + label = d.get('label', name[-11:]) self.get_or_create_bar(bar_name, label, d['units'], d['total'], True) else: if d['done'][0] != -1: @@ -368,7 +368,7 @@ class Advanced(Basic): def sync_main(self, name, d): bar = self.bars.get(name) if bar is None: - label = d.get('label', name[-10:]) + label = d.get('label', name[-11:]) self.get_or_create_bar(name, label, d['units'], d['total'], True) #self.last_stats = f"{d['txs']:,d} txs, {d['claims']:,d} claims and {d['supports']:,d} supports" #self.get_or_create_bar("read", "├─ blocks read", "blocks", d['blocks'], True) @@ -391,7 +391,7 @@ class Advanced(Basic): bar = self.bars.get(bar_name) if bar is None: assert d['done'][0] == 0 - label = d.get('label', name[-10:]) + label = d.get('label', name[-11:]) self.get_or_create_bar(f"{name}#{d['id']}", label, d['units'], d['total']) else: if d['done'][0] != -1: