Merge branch 'master' of soutade.fr:iwla

This commit is contained in:
Gregory Soutade 2014-12-15 08:26:19 +01:00
commit f13ba43dae
2 changed files with 4 additions and 2 deletions

3
TODO
View File

@ -6,4 +6,5 @@ Limit hits/pages/downloads by rate
Automatic tests Automatic tests
quiet mode quiet mode
Add Licence Add Licence
Free memory as soon as possible Free memory as soon as possible
gzip output files

View File

@ -533,7 +533,8 @@ class IWLA(object):
else: else:
stats['viewed_hits'] += 1 stats['viewed_hits'] += 1
if (conf.count_hit_only_visitors or\ if (conf.count_hit_only_visitors or\
viewed_pages): viewed_pages) and\
not super_hit['robot']:
stats['nb_visitors'] += 1 stats['nb_visitors'] += 1
print "== Stats for %d/%02d/%d ==" % (cur_time.tm_year, cur_time.tm_mon, cur_time.tm_mday) print "== Stats for %d/%02d/%d ==" % (cur_time.tm_year, cur_time.tm_mon, cur_time.tm_mday)