MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / formatIntervalLabel

Function formatIntervalLabel

src/components/CronWeeklyTimeline.tsx:66–71  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

64}
65
66function formatIntervalLabel(ms: number): string {
67 if (ms >= 86400000) return `Every ${Math.round(ms / 86400000)}d`;
68 if (ms >= 3600000) return `Every ${Math.round(ms / 3600000)}h`;
69 if (ms >= 60000) return `Every ${Math.round(ms / 60000)}m`;
70 return `Every ${Math.round(ms / 1000)}s`;
71}
72
73function getJobEmoji(agentId: string): string {
74 const emojis: Record<string, string> = {

Callers 1

CronWeeklyTimelineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected