(bytesPerSec: number)
| 50 | new Intl.NumberFormat(undefined).format(Math.max(0, Math.floor(n))); |
| 51 | |
| 52 | const formatDataRate = (bytesPerSec: number): string => { |
| 53 | const kbps = bytesPerSec / 1024; |
| 54 | return `${kbps.toFixed(0)} KB/s`; |
| 55 | }; |
| 56 | |
| 57 | // Streaming configuration |
| 58 | const POINTS_PER_FRAME = 10_000; |