Skip to content
This repository was archived by the owner on Jun 12, 2020. It is now read-only.

Commit f275805

Browse files
committed
Values are stored in db as floats, not doubles so they should be fetched as float32
go-sql-driver/mysql#308
1 parent 92b2285 commit f275805

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proto/reports/reports.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Chart struct {
3838

3939
type ChartPoint struct {
4040
Datetime int64
41-
Metric float64
41+
Metric float32
4242
}
4343

4444
type SlowQueries struct {
@@ -70,9 +70,9 @@ type Query struct {
7070
MetricPct95Change float64
7171
MetricAvg float64
7272
MetricAvgChange float64
73-
MetricMin float64
73+
MetricMin float32
7474
MetricMinChange float64
75-
MetricMax float64
75+
MetricMax float32
7676
MetricMaxChange float64
7777
MetricCount int64
7878
MetricCountChange float64

0 commit comments

Comments
 (0)