MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / formatMs

Function formatMs

tests/loadtest/tools/dashboard/app.js:1421–1429  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1419}
1420
1421function formatMs(value) {
1422 if (value === null || value === undefined) {
1423 return "n/a";
1424 }
1425 if (value >= 1000) {
1426 return `${(value / 1000).toFixed(2)}s`;
1427 }
1428 return value >= 100 ? `${value.toFixed(0)}ms` : `${value.toFixed(1)}ms`;
1429}
1430
1431function formatDuration(value) {
1432 if (value === null || value === undefined) {

Callers 5

renderRunListFunction · 0.85
renderSummaryGridFunction · 0.85
renderLatencyChartFunction · 0.85
buildStatsFunction · 0.85
formatThresholdValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected