import type { ResourceStats } from "@/lib/db/schema"; import { formatBytes } from "@/lib/format"; const cores = (v: number | null) => (v == null ? "—" : v.toFixed(v >= 10 ? 0 : 1)); function Cell({ label, value, note }: { label: string; value: string; note?: string }) { return (
No resource samples were recorded.
; const multi = stats.containers.length > 1; return (
Sampled every ~2 s over {stats.seconds} s ({stats.samples} samples). RAM is the container's usage without page cache, like docker stats; GPU
figures are for the whole GPU, so other work on it counts too.