iwla

iwla Commit Details

Date:2015-01-06 08:08:09 (6 years 6 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:bfba52af8fcd78deefb9cc1932ffcb4306d98d78
Parents: a6ce8e1c6eba5436f043307e399d65298b14882f
Message:Bug : hits/pages in the same second where not analyzed

Changes:
Miwla.py (3 diffs)

File differences

iwla.py
267267
268268
269269
270
270271
271272
273
272274
273
275
274276
275277
276278
......
627629
628630
629631
632
630633
631634
632635
......
637640
638641
639642
640
643
644
645
641646
642647
643648
mod.hook(*args)
def isPage(self, request):
self.logger.debug("Is page %s" % (request))
for e in conf.pages_extensions:
if request.endswith(e):
self.logger.debug("True")
return True
self.logger.debug("False")
return False
def _appendHit(self, hit):
def _newHit(self, hit):
if not self.domain_name_re.match(hit['server_name']):
self.logger.debug("Not in domain %s" % (hit))
return False
t = self._decodeTime(hit)
self.current_analysis = self._deserialize(self.getDBFilename(t)) or self._clearVisits()
self.analyse_started = True
else:
if time.mktime(t) <= time.mktime(cur_time):
if not self.analyse_started and\
time.mktime(t) <= time.mktime(cur_time):
self.logger.debug("Not in time")
return False
self.analyse_started = True
if cur_time.tm_mon != t.tm_mon:

Archive Download the corresponding diff file

Branches

Tags