Skip to content

Commit

Permalink
pgpool: return last_status_time of show pool_nodes in utc
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevan committed Aug 23, 2023
1 parent 6fda1db commit cd12ebb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion collector/pgpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ func (c *collector) getPPNodes() {
}

func pgpoolScanTime(val string) (out int64) {
_, offset := time.Now().Zone()
if t, err := time.Parse("2006-01-02 15:04:05", val); err == nil {
out = t.Unix()
out = t.Unix() - int64(offset)
}
return
}
Expand Down

0 comments on commit cd12ebb

Please sign in to comment.