Skip to content

Commit

Permalink
Fixed bug when displaying trust statistics
Browse files Browse the repository at this point in the history
total_up and total_down have been replaced by total_given and total_taken, respectively.
  • Loading branch information
devos50 committed Oct 27, 2020
1 parent c7a557d commit 129515b
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -52,8 +52,8 @@ def received_bandwidth_statistics(self, statistics: Dict) -> None:
return

statistics = statistics["statistics"]
total_up = statistics.get("total_up", 0)
total_down = statistics.get("total_down", 0)
total_up = statistics.get("total_given", 0)
total_down = statistics.get("total_taken", 0)

self.window().trust_contribution_amount_label.setText("%s MBytes" % (total_up // self.byte_scale))
self.window().trust_consumption_amount_label.setText("%s MBytes" % (total_down // self.byte_scale))
Expand Down

0 comments on commit 129515b

Please sign in to comment.