MCPcopy Create free account
hub / github.com/bjsi/incremental-everything / rDevColor

Function rDevColor

src/components/CardMemoryAnalyticsView.tsx:79–84  ·  view source on GitHub ↗
(pp: number)

Source from the content-addressed store, hash-verified

77 const days = hours / 24;
78 return `${days.toFixed(1)}d`;
79}
80
81function fmtStabilityDays(days: number): string {
82 if (!Number.isFinite(days) || days <= 0) return '—';
83 if (days < 30) return `${days.toFixed(1)}d`;
84 if (days < 365) return `${(days / 30.436875).toFixed(1)}mo`;
85 return `${(days / 365.25).toFixed(1)}y`;
86}
87

Callers 1

BucketRowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected