ui/client/features/ollama/domain/Ollama
Pure (DOMAIN-001: no external effects anywhere in this file, even in a comment — no React import either) — byte-size and pull-progress formatting for the Ollama status/model-list screens.
Cockpit client (features), next. Source: ui/client/features/ollama/domain/Ollama.tsx.
Functions#
formatBytes()#
formatBytes(
bytes):string
Defined in: ui/client/features/ollama/domain/Ollama.tsx:5
Parameters#
bytes
number | null | undefined
Returns#
string
pullPercent()#
pullPercent(
progress):number|null
Defined in: ui/client/features/ollama/domain/Ollama.tsx:20
Percent complete for one pull-progress event, or null when the event doesn't carry byte counts yet (e.g. an early "pulling manifest" status line, or a terminal "success" line with no total).
Parameters#
progress
{ completed?: number; total?: number; } | null | undefined
Returns#
number | null