MCPcopy Create free account
hub / github.com/continuedev/continue / getCpuColor

Function getCpuColor

extensions/cli/src/ui/components/ResourceDebugBar.tsx:82–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 };
81
82 const getCpuColor = () => {
83 if (cpuPercent > 80) return "red";
84 if (cpuPercent > 60) return "yellow";
85 return "green";
86 };
87
88 const getEventLoopColor = () => {
89 if (resourceData.eventLoop.lag > 100) return "red";

Callers 1

ResourceDebugBarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected