Merge pull request #1683 from rgtk/patch-2

Update Stats Collection documentation for @master
This commit is contained in:
Elias Dorneles 2016-01-15 16:30:52 -02:00
commit 3f1f15bc4d
1 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ Set stat value::
Increment stat value::
stats.inc_value('pages_crawled')
stats.inc_value('custom_count')
Set stat value only if greater than previous::
@ -59,13 +59,13 @@ Set stat value only if lower than previous::
Get stat value::
>>> stats.get_value('pages_crawled')
8
>>> stats.get_value('custom_count')
1
Get all stats::
>>> stats.get_stats()
{'pages_crawled': 1238, 'start_time': datetime.datetime(2009, 7, 14, 21, 47, 28, 977139)}
{'custom_count': 1, 'start_time': datetime.datetime(2009, 7, 14, 21, 47, 28, 977139)}
Available Stats Collectors
==========================