MCPcopy Index your code
hub / github.com/pyload/pyload / statusServer

Method statusServer

module/Api.py:220–233  ·  view source on GitHub ↗

Some general information about the current status of pyLoad. :return: `ServerStatus`

(self)

Source from the content-addressed store, hash-verified

218
219 @permission(PERMS.LIST)
220 def statusServer(self):
221 """Some general information about the current status of pyLoad.
222
223 :return: `ServerStatus`
224 """
225 serverStatus = ServerStatus(self.core.threadManager.pause, len(self.core.threadManager.processingIds()),
226 self.core.files.getQueueCount(), self.core.files.getFileCount(), 0,
227 not self.core.threadManager.pause and self.isTimeDownload(),
228 self.core.config['reconnect']['activated'] and self.isTimeReconnect())
229
230 for pyfile in [x.active for x in self.core.threadManager.threads if x.active and isinstance(x.active, PyFile)]:
231 serverStatus.speed += pyfile.getSpeed() #bytes/s
232
233 return serverStatus
234
235 @permission(PERMS.STATUS)
236 def freeSpace(self):

Callers 2

renderHeaderMethod · 0.45
refreshServerStatusMethod · 0.45

Calls 7

isTimeDownloadMethod · 0.95
isTimeReconnectMethod · 0.95
processingIdsMethod · 0.80
getQueueCountMethod · 0.80
getFileCountMethod · 0.80
ServerStatusClass · 0.50
getSpeedMethod · 0.45

Tested by

no test coverage detected