From 948cdd29c3d3f6ad73d570e13f9c9d082d1a79dc Mon Sep 17 00:00:00 2001 From: pikastech Date: Tue, 21 Jul 2026 14:06:11 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=8B=E7=BC=A9=E7=B2=BE=E7=A1=AE?= =?UTF-8?q?=E5=86=85=E5=AD=98=E5=9B=9E=E6=94=B6=E8=AE=A1=E5=88=92=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/src/gc-remote.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/src/gc-remote.ts b/scripts/src/gc-remote.ts index e7c5b04f..a22b775b 100644 --- a/scripts/src/gc-remote.ts +++ b/scripts/src/gc-remote.ts @@ -439,13 +439,16 @@ function compactMemoryPressureCandidate(value: unknown): Record action: { op: action.op, allowlist: action.allowlist }, }; if (candidate.kind === "cgroup-memory-reclaim") { + const memoryStat = recordOrEmpty(candidate.memoryStat); return { - ...base, + id: candidate.id, + kind: candidate.kind, configId: candidate.configId, + reason: candidate.reason, + risk: candidate.risk, path: candidate.path, workloadSelector: compactWorkloadSelector(candidate.workloadSelector), resolvedPod: compactResolvedPod(candidate.resolvedPod), - reclaimBytes: candidate.reclaimBytes, requestedMemoryReclaimBytes: candidate.requestedMemoryReclaimBytes, requestedMemoryReclaim: candidate.requestedMemoryReclaim, estimateKind: candidate.estimateKind, @@ -453,6 +456,7 @@ function compactMemoryPressureCandidate(value: unknown): Record minimumInactiveAnonBytes: candidate.minimumInactiveAnonBytes, memoryCurrentBytes: candidate.memoryCurrentBytes, memorySwapCurrentBytes: candidate.memorySwapCurrentBytes, + inactiveAnonBytes: memoryStat.inactive_anon, }; } const identities = Array.isArray(candidate.processIdentities) ? candidate.processIdentities.map(recordOrEmpty) : [];