MCPcopy
hub / github.com/pyload/pyload / refreshServerStatus

Method refreshServerStatus

pyLoadGui.py:284–295  ·  view source on GitHub ↗

refresh server status and overall speed in the status bar

(self)

Source from the content-addressed store, hash-verified

282 self.mainWindow.fileCount.setText("%i" % fc)
283
284 def refreshServerStatus(self):
285 """
286 refresh server status and overall speed in the status bar
287 """
288 s = self.connector.statusServer()
289 if s.pause:
290 self.mainWindow.status.setText(_("paused"))
291 else:
292 self.mainWindow.status.setText(_("running"))
293 self.mainWindow.speed.setText(formatSpeed(s.speed))
294 self.mainWindow.space.setText(formatSize(self.serverStatus["freespace"]))
295 self.mainWindow.actions["toggle_status"].setChecked(not s.pause)
296
297 def refreshLog(self):
298 """

Callers 1

updateMethod · 0.80

Calls 4

formatSpeedFunction · 0.90
formatSizeFunction · 0.90
_Function · 0.50
statusServerMethod · 0.45

Tested by

no test coverage detected