Skip to content

Commit

Permalink
fixed small issue with leader election in colorizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo Biswas authored and Nemo Biswas committed May 11, 2016
1 parent 9bd6832 commit cb5d2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datk/core/algs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def Colorizer(algorithm,network,vals,algorithm_type):
node_colors = dict()
edge_colors = None
for p in network.processes:
if self.has(p, "decided"):
if algorithm.has(p, "decided"):
if p.state['status'] == "leader":
node_colors[p.UID] = 'ro'

Expand Down

0 comments on commit cb5d2b0

Please sign in to comment.