From 43673e86f2a655dd99b88fd65d3d310bafc67348 Mon Sep 17 00:00:00 2001 From: Kpa-clawbot Date: Fri, 3 Apr 2026 23:25:54 -0700 Subject: [PATCH] fix: perf stats MaxMB reads from config instead of hardcoded 1024 (#558) Perf stats `GetPerfStoreStats` returned a hardcoded `MaxMB: 1024` regardless of the configured `packetStore.maxMemoryMB`. Now reads from `s.maxMemoryMB`. Co-authored-by: Kpa-clawbot <259247574+Kpa-clawbot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- cmd/server/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server/store.go b/cmd/server/store.go index 679013b1..90b4abed 100644 --- a/cmd/server/store.go +++ b/cmd/server/store.go @@ -828,7 +828,7 @@ func (s *PacketStore) GetPerfStoreStatsTyped() PerfPacketStoreStats { SqliteOnly: false, MaxPackets: 2386092, EstimatedMB: estimatedMB, - MaxMB: 1024, + MaxMB: s.maxMemoryMB, Indexes: PacketStoreIndexes{ ByHash: hashIdx, ByObserver: observerIdx,