Basically seems to work
This commit is contained in:
4
iwla.py
4
iwla.py
@@ -161,6 +161,7 @@ def createUser(hit):
|
||||
super_hit['last_access'] = meta_visit['last_time']
|
||||
super_hit['pages'] = [];
|
||||
super_hit['robot'] = isRobot(hit);
|
||||
super_hit['hit_only'] = 0;
|
||||
appendHit(hit)
|
||||
|
||||
def isRobot(hit):
|
||||
@@ -276,7 +277,8 @@ def generateStats(visits):
|
||||
|
||||
print "[%s] =>\t%d/%d" % (k, super_hit['viewed_pages'], super_hit['viewed_hits'])
|
||||
|
||||
stats['nb_visitors'] += 1
|
||||
if not super_hit['hit_only']:
|
||||
stats['nb_visitors'] += 1
|
||||
stats['viewed_bandwidth'] += super_hit['bandwith']
|
||||
stats['viewed_pages'] += super_hit['viewed_pages']
|
||||
stats['viewed_hits'] += super_hit['viewed_hits']
|
||||
|
||||
Reference in New Issue
Block a user