Now machines does not locks forever.... (fix)

This commit is contained in:
Adolfo Gómez García 2021-03-01 13:12:14 +01:00
parent 8af6cc008b
commit 52f8dc7fde

View File

@ -152,7 +152,7 @@ class IPMachinesService(IPServiceBase):
# Search first unassigned machine
try:
now = getSqlDatetimeAsUnix()
consideredFreeTime = now - config.GlobalConfig.SESSION_EXPIRE_TIME.getInt(force=False) * 24
consideredFreeTime = now - config.GlobalConfig.SESSION_EXPIRE_TIME.getInt(force=False) * 3600
for ip in self._ips:
theIP = ip.split('~')[0]
locked = self.storage.getPickle(theIP)