Skip to content

Commit

Permalink
Fix checkpoint_sync_time value type
Browse files Browse the repository at this point in the history
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 <nico@nicoladmin.fr>
  • Loading branch information
n-rodriguez authored and SuperQ committed Aug 1, 2022
1 parent 4dbec5a commit 7a0accf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/pg_stat_bgwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (PGStatBGWriterCollector) Update(ctx context.Context, server *server, ch ch
var cpt int
var cpr int
var cpwt float64
var cpst int
var cpst float64
var bcp int
var bc int
var mwc int
Expand Down

0 comments on commit 7a0accf

Please sign in to comment.