Spaces:
Configuration error
Configuration error
File size: 178 Bytes
03b405b | 1 2 3 4 5 6 7 | async function estimateUploadTime(bytes, mbps = 5) {
const seconds = bytes / (mbps * 1024 * 1024 / 8);
return Math.ceil(seconds);
}
module.exports = { estimateUploadTime };
|