MCPcopy Create free account
hub / github.com/error311/FileRise / formatDuration

Function formatDuration

public/js/folderManager.js:3007–3012  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

3005}
3006
3007function formatDuration(ms) {
3008 const total = Math.max(0, Math.floor(Number(ms || 0) / 1000));
3009 const m = Math.floor(total / 60);
3010 const s = total % 60;
3011 return `${m}:${String(s).padStart(2, '0')}`;
3012}
3013
3014function readCryptoEstimateSpeed() {
3015 try {

Callers 1

renderCryptoJobUiFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected