(activeInstances: Set<string>)
| 142 | } |
| 143 | |
| 144 | function 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 | |
| 152 | function calcStats(instance: Instance): void { |
| 153 | const obj = uptimeObject.get(instance.name); |