From 52a51d8f9c321b00b48548b2f8c70c920cb40423 Mon Sep 17 00:00:00 2001 From: Joybuke Date: Sun, 19 Dec 2021 06:53:20 -0600 Subject: [PATCH] Graph can now go higher than TB. New PB Definition added. --- src/tribler-gui/tribler_gui/defs.py | 1 + src/tribler-gui/tribler_gui/widgets/trustpage.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tribler-gui/tribler_gui/defs.py b/src/tribler-gui/tribler_gui/defs.py index f05bb7804b2..2370ef83a97 100644 --- a/src/tribler-gui/tribler_gui/defs.py +++ b/src/tribler-gui/tribler_gui/defs.py @@ -192,6 +192,7 @@ def get(cls, item, default=None): MB = 1024 * KB GB = 1024 * MB TB = 1024 * GB +PB = 1024 * TB DARWIN = sys.platform == 'darwin' WINDOWS = sys.platform == 'win32' diff --git a/src/tribler-gui/tribler_gui/widgets/trustpage.py b/src/tribler-gui/tribler_gui/widgets/trustpage.py index 97c6303ab88..0f3415e6eff 100644 --- a/src/tribler-gui/tribler_gui/widgets/trustpage.py +++ b/src/tribler-gui/tribler_gui/widgets/trustpage.py @@ -4,7 +4,7 @@ from tribler_common.sentry_reporter.sentry_mixin import AddBreadcrumbOnShowMixin -from tribler_gui.defs import GB, TB +from tribler_gui.defs import GB, PB from tribler_gui.dialogs.trustexplanationdialog import TrustExplanationDialog from tribler_gui.tribler_request_manager import TriblerNetworkRequest from tribler_gui.utilities import connect @@ -18,7 +18,7 @@ def __init__(self, parent, **kargs): ] super().__init__(parent, 'Token balance over time', series, **kargs) self.setLabel('left', 'Data', units='B') - self.setLimits(yMin=-GB, yMax=TB) + self.setLimits(yMin=-GB, yMax=PB) class TrustPage(AddBreadcrumbOnShowMixin, QWidget):