Skip to content

Commit

Permalink
Convert value to str when counting strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Hanks committed Apr 12, 2013
1 parent e21cd39 commit 5707111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/lib/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def pg_event(self, db_server, db_name, start, end):
self.client.timing_stats.record(key, start, end)

def count_string(self, key, value, count=1):
self.client.string_counts.record(key, value, count=count)
self.client.string_counts.record(key, str(value), count=count)


class CacheStats:
Expand Down

0 comments on commit 5707111

Please sign in to comment.