Skip to content

Commit 4e8806b

Browse files
n-rodriguezSuperQ
authored andcommitted
Fix checkpoint_sync_time value type
Error: sql: Scan error on column index 3, name \"checkpoint_sync_time\": converting driver.Value type float64 (\"1.876469e+06\") to a int: invalid syntax See also: prometheus-community#633 prometheus-community#666 Signed-off-by: Nicolas Rodriguez <[email protected]>
1 parent 59adec6 commit 4e8806b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/pg_stat_bgwriter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (PGStatBGWriterCollector) Update(ctx context.Context, server *server, ch ch
127127
var cpt int
128128
var cpr int
129129
var cpwt float64
130-
var cpst int
130+
var cpst float64
131131
var bcp int
132132
var bc int
133133
var mwc int

0 commit comments

Comments
 (0)