Permalink
Browse files

Ensure our modifier represents the MINUTE_NORMALIZATION setting

  • Loading branch information...
1 parent aa00f44 commit 77e7987b3e6748c56771cc07e33e92a6c725997f @dcramer dcramer committed Sep 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/sentry/manager.py
View
@@ -357,8 +357,8 @@ def _get_chart_data(self, queryset, max_days=90, db='default', key=None):
else:
g_type = 'minute'
d_type = 'minutes'
- points = max_days * 24 * 4
- modifier = 15
+ modifier = settings.MINUTE_NORMALIZATION
+ points = max_days * 24 * (60 / modifier)
min_date = today - datetime.timedelta(days=max_days)

0 comments on commit 77e7987

Please sign in to comment.