mirror of
https://github.com/henrygd/beszel.git
synced 2026-08-14 14:27:51 +02:00
bug: fix docker memory chart (#2027)
This commit is contained in:
@@ -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)
|
||||
|
||||
2
internal/site/src/types.d.ts
vendored
2
internal/site/src/types.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user