(bytes: number)
| 1224 | } |
| 1225 | |
| 1226 | function formatMemory(bytes: number): string { |
| 1227 | if (!bytes || bytes <= 0) return "—"; |
| 1228 | const mb = bytes / (1024 * 1024); |
| 1229 | if (mb >= 1) return `${mb.toFixed(1)} MB`; |
| 1230 | const kb = bytes / 1024; |
| 1231 | return `${kb.toFixed(0)} KB`; |
| 1232 | } |
| 1233 | |
| 1234 | function formatUptime(seconds: number): string { |
| 1235 | if (!seconds || seconds <= 0) return "—"; |
no outgoing calls
no test coverage detected