Skip to content

Commit 5dcb244

Browse files
committed
make counter int
1 parent 2f888cd commit 5dcb244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/shared_memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class SharedCounter:
44
def __init__(self):
55
self.lock = Lock()
6-
self.n = Value('d', 0)
6+
self.n = Value('i', 0)
77

88
def increment_by(self, k):
99
with self.lock:

0 commit comments

Comments
 (0)