Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0c979fc1
authored
Dec 12, 2013
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: fix lease seconds inaccuracy for intervals longer than a day
parent
21333f3b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
circle/vm/models/common.py
+2
-2
No files found.
circle/vm/models/common.py
View file @
0c979fc1
...
@@ -72,7 +72,7 @@ class Lease(Model):
...
@@ -72,7 +72,7 @@ class Lease(Model):
@suspend_interval.setter
@suspend_interval.setter
def
suspend_interval
(
self
,
value
):
def
suspend_interval
(
self
,
value
):
self
.
suspend_interval_seconds
=
value
.
seconds
self
.
suspend_interval_seconds
=
value
.
total_seconds
()
@property
@property
def
delete_interval
(
self
):
def
delete_interval
(
self
):
...
@@ -80,7 +80,7 @@ class Lease(Model):
...
@@ -80,7 +80,7 @@ class Lease(Model):
@delete_interval.setter
@delete_interval.setter
def
delete_interval
(
self
,
value
):
def
delete_interval
(
self
,
value
):
self
.
delete_interval_seconds
=
value
.
seconds
self
.
delete_interval_seconds
=
value
.
total_seconds
()
def
get_readable_suspend_time
(
self
):
def
get_readable_suspend_time
(
self
):
return
timeuntil
(
datetime
.
utcnow
()
+
self
.
suspend_interval
,
return
timeuntil
(
datetime
.
utcnow
()
+
self
.
suspend_interval
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment