MCPcopy Create free account
hub / github.com/SethGammon/Citadel / pct

Function pct

scripts/permission-audit.js:98–100  ·  view source on GitHub ↗
(n, total)

Source from the content-addressed store, hash-verified

96}
97
98function pct(n, total) {
99 return total ? ((n / total) * 100).toFixed(1) + '%' : '0.0%';
100}
101
102function isDenial(e) {
103 return e.decision === 'deny' || e.decision === 'denied';

Callers 1

buildReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected