Merged 1.9 fixes

This commit is contained in:
Adolfo Gómez García 2016-02-01 17:55:42 +01:00
commit d024d74529
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ import threading
import time
import logging
__updated__ = '2015-10-24'
__updated__ = '2016-02-01'
logger = logging.getLogger(__name__)
@ -100,7 +100,7 @@ class DelayedTaskRunner(object):
def executeOneDelayedTask(self):
now = getSqlDatetime()
filt = Q(execution_time__lt=now) | Q(insert_date__gt=now)
filt = Q(execution_time__lt=now) | Q(insert_date__gt=now + timedelta(seconds=30))
# If next execution is before now or last execution is in the future (clock changed on this server, we take that task as executable)
taskInstance = None
try:

View File

@ -138,8 +138,8 @@ class UsageByPool(StatsReport):
logins = {}
data = []
for i in items:
if '\\' in i.fld1:
continue
# if '\\' in i.fld1:
# continue
if i.event_type == events.ET_LOGIN:
logins[i.fld4] = i.stamp