bug: fix docker memory chart (#2027)

This commit is contained in:
Sven van Ginkel
2026-08-13 19:21:40 -04:00
committed by GitHub
parent e380ab6917
commit 35af36fbd2
2 changed files with 2 additions and 2 deletions
@@ -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)
+1 -1
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