Skip to content

Commit

Permalink
Fix postgres.iotime.{blk_read_time,blk_write_time}
Browse files Browse the repository at this point in the history
  • Loading branch information
mechairoi committed Sep 15, 2016
1 parent 8687d61 commit 966bd1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mackerel-plugin-postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ func fetchStatDatabase(db *sql.DB) (map[string]float64, error) {
stat["xact_rollback"] += float64(xactRollback)
stat["blks_read"] += float64(blksRead)
stat["blks_hit"] += float64(blksHit)
stat["blk_read_time"] += float64(blksHit)
stat["blk_write_time"] += float64(blksHit)
stat["blk_read_time"] += float64(blkReadTime)
stat["blk_write_time"] += float64(blkWriteTime)
stat["tup_returned"] += float64(tupReturned)
stat["tup_fetched"] += float64(tupFetched)
stat["tup_inserted"] += float64(tupInserted)
Expand Down

0 comments on commit 966bd1a

Please sign in to comment.