git://git.onelab.eu
/
tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0346e9f
)
needed for creating leases in python3
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Fri, 3 Apr 2015 12:24:02 +0000
(14:24 +0200)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Fri, 3 Apr 2015 12:24:02 +0000
(14:24 +0200)
system/TestPlc.py
patch
|
blob
|
history
diff --git
a/system/TestPlc.py
b/system/TestPlc.py
index
1d1ea45
..
f55ee12
100644
(file)
--- a/
system/TestPlc.py
+++ b/
system/TestPlc.py
@@
-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()