Browse Source

distributed: fix division exception in ServerRepository

change operator to double slash for integer division

Closes #762
fireclawthefox 6 years ago
parent
commit
b3c79096e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/distributed/ServerRepository.py

+ 1 - 1
direct/src/distributed/ServerRepository.py

@@ -137,7 +137,7 @@ class ServerRepository:
 
 
         # An allocator object that assigns the next doIdBase to each
         # An allocator object that assigns the next doIdBase to each
         # client.
         # client.
-        self.idAllocator = UniqueIdAllocator(0, 0xffffffff / self.doIdRange)
+        self.idAllocator = UniqueIdAllocator(0, 0xffffffff // self.doIdRange)
 
 
         self.dcFile = DCFile()
         self.dcFile = DCFile()
         self.dcSuffix = ''
         self.dcSuffix = ''