pull/10/head v0.29.1
Hunter Long 2018-07-04 02:00:49 -07:00
parent cb46bf6496
commit 1406398a8e
1 changed files with 0 additions and 1 deletions

View File

@ -135,7 +135,6 @@ func GroupDataBy(column string, id int64, tm time.Time, increment string) string
case "postgres":
sql = fmt.Sprintf("SELECT date_trunc('%v', created_at), AVG(latency)*1000 AS value FROM %v WHERE service=%v AND created_at >= '%v' GROUP BY 1 ORDER BY date_trunc ASC;", increment, column, id, tm.Format(time.RFC3339))
}
fmt.Println(sql)
return sql
}