(used: number, total: number)
| 71 | } |
| 72 | |
| 73 | export 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 | |
| 78 | export function getStatusColor(status: ProcessInfo["status"]): string { |
| 79 | switch (status) { |
no outgoing calls
no test coverage detected