Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrown608 committed Feb 21, 2019
1 parent fe15828 commit 9857684
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/sqldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ func (db *SQLDatabase) PutScan(scan models.Scan) error {
func (db *SQLDatabase) GetMTASTSStats() (models.TimeSeries, error) {
// "day" represents truncated date (ie beginning of day), but windows should
// include the full day, so we add a day when querying timestamps.
// Getting the most recent 31 days for now, we can set the start date to the
// beginning of our MTA-STS data once we have some.
query := `
SELECT day, 100.0 * SUM(
CASE WHEN mta_sts_mode = 'testing' THEN 1 ELSE 0 END +
Expand Down

0 comments on commit 9857684

Please sign in to comment.