MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / getServerCapacity

Function getServerCapacity

ui/media/js/engine.js:1222–1228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1220 }
1221
1222 function getServerCapacity() {
1223 let activeDevicesCount = Object.keys(serverState?.devices?.active || {}).length
1224 if (typeof window === "object" && window.document.visibilityState === "hidden") {
1225 activeDevicesCount = 1 + activeDevicesCount
1226 }
1227 return activeDevicesCount
1228 }
1229
1230 let idleEventPromise = undefined
1231 function continueTasks() {

Callers 2

continueTasksFunction · 0.85
engine.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected