git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc449e5
)
use // instead of / when rounding timestamp in Lease
author
parmentelat
<thierry.parmentelat@inria.fr>
Mon, 14 Jan 2019 11:12:26 +0000
(12:12 +0100)
committer
parmentelat
<thierry.parmentelat@inria.fr>
Mon, 14 Jan 2019 11:12:26 +0000
(12:12 +0100)
PLC/Leases.py
patch
|
blob
|
history
diff --git
a/PLC/Leases.py
b/PLC/Leases.py
index
66e7902
..
9da3d3b
100644
(file)
--- a/
PLC/Leases.py
+++ b/
PLC/Leases.py
@@
-53,7
+53,7
@@
class Lease(Row):
if round_up:
timestamp += (granularity-1)
# round down
- timestamp = (timestamp
/
granularity) * granularity
+ timestamp = (timestamp
//
granularity) * granularity
# return a SQL string
return Timestamp.sql_validate_utc(timestamp)