bug: fix docker memory chart (#2027)

This commit is contained in:
Sven van Ginkel
2026-08-14 01:21:40 +02:00
committed by GitHub
parent e380ab6917
commit 35af36fbd2
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ export function ContainerMemoryChart({
dataPoints={dataPoints}
tickFormatter={(val) => {
const { value, unit } = formatBytes(val, false, Unit.Bytes, true)
return `${toFixedFloat(value, val >= 10 ? 0 : 1)} ${unit}`
return `${toFixedFloat(value, value >= 10 ? 0 : 1)} ${unit}`
}}
contentFormatter={(item) => {
const { value, unit } = formatBytes(item.value, false, Unit.Bytes, true)

View File

@@ -208,7 +208,7 @@ interface ContainerStats {
n: string
/** cpu percent */
c: number
/** memory used (gb) */
/** memory used (mb) */
m: number
// network sent (mb)
ns?: number