diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 685ddb2d060..c7428267700 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -88,6 +88,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff] *Packetbeat* +- Fix default cache size calculation. {pull}36723[36723] *Winlogbeat* diff --git a/packetbeat/protos/amqp/amqp_structs.go b/packetbeat/protos/amqp/amqp_structs.go index 7abba4fc914..de31fce6af3 100644 --- a/packetbeat/protos/amqp/amqp_structs.go +++ b/packetbeat/protos/amqp/amqp_structs.go @@ -27,7 +27,7 @@ import ( type amqpMethod func(*amqpMessage, []byte) (bool, bool) const ( - transactionsHashSize = 2 ^ 16 + transactionsHashSize = 1 << 16 transactionTimeout = 10 * 1e9 ) diff --git a/packetbeat/protos/protos.go b/packetbeat/protos/protos.go index 23c79750370..3841db8f91b 100644 --- a/packetbeat/protos/protos.go +++ b/packetbeat/protos/protos.go @@ -33,7 +33,7 @@ import ( ) const ( - DefaultTransactionHashSize = 2 ^ 16 + DefaultTransactionHashSize = 1 << 16 DefaultTransactionExpiration time.Duration = 10 * time.Second )