Skip to content

Commit

Permalink
fix getting track_activity_query_size value (#18)
Browse files Browse the repository at this point in the history
On Postgresql<=11, track_activity_query_size has no unit, so it should be considered as bytes by default
  • Loading branch information
adrienyhuel authored Jul 5, 2023
1 parent 5f6170e commit 833e286
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ func (c *Collector) snapshot() {
querySizeLimit = int(s.Value)
case "kB":
querySizeLimit = int(s.Value) * 1024
default:
querySizeLimit = int(s.Value)
}
break
}
Expand Down

0 comments on commit 833e286

Please sign in to comment.