Skip to content

Commit 1f25c32

Browse files
committed
fix
1 parent 3c4c4bd commit 1f25c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def check_efficiency(self, args):
6363
color_efficiency = GetColorInt(efficiency, 90, logic="more", ending="%")
6464
created = validator.blocks_created
6565
expected = validator.blocks_expected
66-
color_print(f"Previous round efficiency: {color_efficiency} {{yellow}}({created} blocks created / {expected} blocks expected){{endc}}")
66+
color_print(f"Previous round efficiency: {color_efficiency} {{yellow}}({created} blocks created / {round(expected, 1)} blocks expected){{endc}}")
6767
else:
6868
print("Couldn't find this validator in the previous round")
6969
validator = self.find_myself(validators)
@@ -83,7 +83,7 @@ def check_efficiency(self, args):
8383
color_efficiency = GetColorInt(efficiency, 90, logic="more", ending="%")
8484
created = validator.blocks_created
8585
expected = validator.blocks_expected
86-
color_print(f"Current round efficiency: {color_efficiency} {{yellow}}({created} blocks created / {expected} blocks expected){{endc}}")
86+
color_print(f"Current round efficiency: {color_efficiency} {{yellow}}({created} blocks created / {round(expected, 1)} blocks expected){{endc}}")
8787
else:
8888
print("Couldn't find this validator in the current round")
8989
# end define

0 commit comments

Comments
 (0)