Spaces:
Configuration error
Configuration error
Download src/monitoring/speedtest.js from UUUZCX/video-optimizer-bot: direct link, hf CLI and curl.
- Browser
- Download file 178 Bytes
-
https://huggingface.co/spaces/UUUZCX/video-optimizer-bot/resolve/main/src/monitoring/speedtest.js
- Command line
-
hf download hf://spaces/UUUZCX/video-optimizer-bot/src/monitoring/speedtest.js
-
curl -L -o speedtest.js https://huggingface.co/spaces/UUUZCX/video-optimizer-bot/resolve/main/src/monitoring/speedtest.js
178 Bytes
| async function estimateUploadTime(bytes, mbps = 5) { | |
| const seconds = bytes / (mbps * 1024 * 1024 / 8); | |
| return Math.ceil(seconds); | |
| } | |
| module.exports = { estimateUploadTime }; | |