Permalink
Browse files

Remove the latest interval from reporting until we can normalize it

  • Loading branch information...
1 parent 542003a commit 92bc3c0ad8ce25c1611aa2983f3d02a98be40479 @dcramer dcramer committed Sep 20, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/sentry/manager.py
View
@@ -342,6 +342,11 @@ def _get_chart_data(self, queryset, max_days=90, db='default', key=None):
today = timezone.now().replace(microsecond=0, second=0)
+ # the last interval is not accurate, so we exclude it
+ # TODO: it'd be ideal to normalize the last datapoint so that we can include it
+ # and not have ~inaccurate data for up to MINUTE_NORMALIZATION
+ today -= datetime.timedelta(minutes=settings.MINUTE_NORMALIZATION)
+
if max_days >= 30:
g_type = 'date'
d_type = 'days'

0 comments on commit 92bc3c0

Please sign in to comment.