forked from shaba/openuds
Merged 1.9 fixes
This commit is contained in:
commit
d024d74529
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user