MCPcopy Create free account
hub / github.com/TabularisDB/tabularis / formatMemoryBar

Function formatMemoryBar

src/utils/taskManager.ts:73–76  ·  view source on GitHub ↗
(used: number, total: number)

Source from the content-addressed store, hash-verified

71}
72
73export function formatMemoryBar(used: number, total: number): number {
74 if (total <= 0) return 0;
75 return Math.min(100, Math.round((used / total) * 100));
76}
77
78export function getStatusColor(status: ProcessInfo["status"]): string {
79 switch (status) {

Callers 2

TaskManagerPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected