Skip to content

Commit

Permalink
Merge pull request #6666 from Joybuke/main
Browse files Browse the repository at this point in the history
Fixes #6665 - Graph can now go higher than TB. New PB Definition added.
  • Loading branch information
kozlovsky authored Dec 20, 2021
2 parents 25697fc + 52a51d8 commit 3e01be8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/tribler-gui/tribler_gui/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions src/tribler-gui/tribler_gui/widgets/trustpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 3e01be8

Please sign in to comment.