(bytes: number)
| 125 | return (bytes / Math.pow(k, i)).toFixed(2) + " " + sizes[i]; |
| 126 | } |
| 127 | |
| 128 | function formatSpeed(bytes: number): string { |
| 129 | return formatBytes(bytes) + "/s"; |
| 130 | } |
| 131 | |
| 132 | function formatUptime(seconds: number): string { |
| 133 | const days = Math.floor(seconds / 86400); |
| 134 | const hours = Math.floor((seconds % 86400) / 3600); |
| 135 | const minutes = Math.floor((seconds % 3600) / 60); |
| 136 | const parts: string[] = []; |
no outgoing calls
no test coverage detected