Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure our modifier represents the MINUTE_NORMALIZATION setting

  • Loading branch information...
commit 77e7987b3e6748c56771cc07e33e92a6c725997f 1 parent aa00f44
@dcramer dcramer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/sentry/manager.py
View
4 src/sentry/manager.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.