needed for creating leases in python3
Thierry Parmentelat [Fri, 3 Apr 2015 12:24:02 +0000 (14:24 +0200)]
system/TestPlc.py

index 1d1ea45..f55ee12 100644 (file)
@@ -910,7 +910,7 @@ class TestPlc:
         now = int(time.time())
         grain = self.apiserver.GetLeaseGranularity(self.auth_root())
         print('API answered grain=', grain)
-        start = (now/grain)*grain
+        start = (now//grain)*grain
         start += grain
         # find out all nodes that are reservable
         nodes = self.all_reservable_nodenames()