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

Function formatDuration

public/js/transferProgress.js:38–43  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

36}
37
38function formatDuration(ms) {
39 const total = Math.max(0, Math.floor(ms / 1000));
40 const m = Math.floor(total / 60);
41 const s = total % 60;
42 return `${m}:${String(s).padStart(2, '0')}`;
43}
44
45function readStoredSpeed() {
46 try {

Callers 1

renderJobFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected