Includede persistent machines check idle also.

This commit is contained in:
Adolfo Gómez García 2016-09-07 16:49:40 +02:00
parent 3528424892
commit 2eaa447155
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ class LinuxOsManager(osmanagers.OSManager):
'''
On production environments, will return no idle for non removable machines
'''
if self._idle <= 0 or (settings.DEBUG is False and self._onLogout != 'remove'):
if self._idle <= 0: # or (settings.DEBUG is False and self._onLogout != 'remove'):
return None
return self._idle

View File

@ -217,7 +217,7 @@ class WindowsOsManager(osmanagers.OSManager):
'''
On production environments, will return no idle for non removable machines
'''
if self._idle <= 0 or (settings.DEBUG is False and self._onLogout != 'remove'):
if self._idle <= 0: # or (settings.DEBUG is False and self._onLogout != 'remove'):
return None
return self._idle