mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
As-is, TTL-cleanup is an hour off
This commit changes calculation from "greater than" to "greater than or equal to" TTL.
This commit is contained in:
parent
27a8f5dbbb
commit
1a8f457ced
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ module Vmpooler
|
|||
if (
|
||||
(host.runtime) and
|
||||
(host.runtime.bootTime)
|
||||
((((Time.now - host.runtime.bootTime)/60).to_s[/^\d+\.\d{1}/].to_f) > ttl)
|
||||
((((Time.now - host.runtime.bootTime)/60).to_s[/^\d+\.\d{1}/].to_f) >= ttl)
|
||||
)
|
||||
$redis.smove('vmpooler__running__'+pool, 'vmpooler__completed__'+pool, vm)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue