MCPcopy Create free account
hub / github.com/Tong89/smartNode / formatProgress

Function formatProgress

frontend/app.js:1455–1458  ·  view source on GitHub ↗
(progress)

Source from the content-addressed store, hash-verified

1453 },
1454
1455 formatProgress(progress) {
1456 const value = Number(progress || 0);
1457 return `${Math.max(0, Math.min(100, value)).toFixed(0)}%`;
1458 },
1459
1460 formatTime(seconds) {
1461 const total = Math.max(0, Math.floor(Number(seconds || 0)));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected