Skip to content

Commit

Permalink
make counter int
Browse files Browse the repository at this point in the history
  • Loading branch information
scientist1642 committed Mar 29, 2017
1 parent 2f888cd commit 5dcb244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/shared_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class SharedCounter:
def __init__(self):
self.lock = Lock()
self.n = Value('d', 0)
self.n = Value('i', 0)

def increment_by(self, k):
with self.lock:
Expand Down

0 comments on commit 5dcb244

Please sign in to comment.