Skip to content

Commit

Permalink
fix graphite hincrby error
Browse files Browse the repository at this point in the history
  • Loading branch information
sailaway committed Aug 7, 2013
1 parent b2fc8ae commit b40e118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woaidu_crawler/woaidu_crawler/statscol/graphite.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def set_stats(self, stats, spider=None):
def inc_value(self, key, count=1, start=0, spider=None):
if not self.server.hexists(self.stats_key,key):
self.set_value(key, start)
self.server.hincrby(self.stats_key,key)
self.server.hincrby(self.stats_key,key,count)

def max_value(self, key, value, spider=None):
self.set_value(key, max(self.get_value(key,value),value))
Expand Down

0 comments on commit b40e118

Please sign in to comment.