Skip to content

Commit

Permalink
Increase target number of points on wiki plot from 10 to 250.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdkendall committed Mar 19, 2011
1 parent 833cd1c commit 7abe04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracstats/web_ui.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ def _process_wiki(self, req, cursor, where, since, data):
total.add(name) total.add(name)
d[int(t)] = len(total) d[int(t)] = len(total)
stats = [] stats = []
steps = max(len(d) / 10, 1) steps = max(len(d) / 250, 1)
for k, v in sorted(d.iteritems(), key=itemgetter(0))[::steps]: for k, v in sorted(d.iteritems(), key=itemgetter(0))[::steps]:
if k > since: if k > since:
stats.append({'x': k * 1000, stats.append({'x': k * 1000,
Expand Down

0 comments on commit 7abe04d

Please sign in to comment.