MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / memoryText

Function memoryText

graph-ui/src/system/system-model.ts:11–13  ·  view source on GitHub ↗
(value: number | null | undefined)

Source from the content-addressed store, hash-verified

9}
10
11export function memoryText(value: number | null | undefined): string {
12 return value == null || !Number.isFinite(value) || value < 0 ? 'Unavailable' : `${value.toFixed(1)} MiB`;
13}
14
15export function memoryLabel(kind: ProcessMemoryKind | undefined): string {
16 if (kind === 'working_set') return 'Working set';

Callers 2

SystemWorkspaceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected