Skip to content

Commit 8855b7a

Browse files
committed
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: #633 #666 Signed-off-by: Nicolas Rodriguez <[email protected]>
1 parent 6e778e7 commit 8855b7a

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
@@ -123,7 +123,7 @@ func (PGStatBGWriterCollector) Update(ctx context.Context, db *sql.DB, ch chan<-
123123
var cpt int
124124
var cpr int
125125
var cpwt float64
126-
var cpst int
126+
var cpst float64
127127
var bcp int
128128
var bc int
129129
var mwc int

0 commit comments

Comments
 (0)