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} dataPoints={dataPoints}
tickFormatter={(val) => { tickFormatter={(val) => {
const { value, unit } = formatBytes(val, false, Unit.Bytes, true) 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) => { contentFormatter={(item) => {
const { value, unit } = formatBytes(item.value, false, Unit.Bytes, true) const { value, unit } = formatBytes(item.value, false, Unit.Bytes, true)

View File

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