Fix: subtract inactive_file from glances container memory usage (#4844)

This commit is contained in:
shamoon
2025-02-27 09:16:14 -08:00
committed by GitHub
parent 666d075ec4
commit 58391ff33f

View File

@@ -65,7 +65,7 @@ export default function Component({ service }) {
<div className="opacity-25 w-14 text-right">{item.cpu_percent.toFixed(1)}%</div>
<div className="opacity-25 w-14 text-right">
{t("common.bytes", {
value: item.memory.usage,
value: item.memory.usage - item.memory.inactive_file,
maximumFractionDigits: 0,
})}
</div>