Skip to content
Snippets Groups Projects
Commit 77735481 authored by inso's avatar inso
Browse files

Fix bug in fork_windows returning a float

parent 2f7bd2b2
No related branches found
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ class Network(QObject):
fork_windows = [n.fork_window for n in self.online_nodes if n.software != ""
and n.pubkey in members_pubkeys]
if len(fork_windows) > 0:
return statistics.median(fork_windows)
return int(statistics.median(fork_windows))
else:
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment