MCPcopy Create free account
hub / github.com/MathMan05/Fermi / updateInactiveInstances

Function updateInactiveInstances

src/stats.ts:144–150  ·  view source on GitHub ↗
(activeInstances: Set<string>)

Source from the content-addressed store, hash-verified

142}
143
144function updateInactiveInstances(activeInstances: Set<string>): void {
145 for (const key of uptimeObject.keys()) {
146 if (!activeInstances.has(key)) {
147 setStatus(key, false);
148 }
149 }
150}
151
152function calcStats(instance: Instance): void {
153 const obj = uptimeObject.get(instance.name);

Callers 1

observeFunction · 0.85

Calls 1

setStatusFunction · 0.85

Tested by

no test coverage detected