(self, client, rid)
| 356 | print_commands() |
| 357 | |
| 358 | def printOnlineCheck(self, client, rid): |
| 359 | while True: |
| 360 | sleep(1) |
| 361 | result = client.pollResults(rid) |
| 362 | for url, status in result.data.iteritems(): |
| 363 | if status.status == 2: check = "Online" |
| 364 | elif status.status == 1: check = "Offline" |
| 365 | else: check = "Unknown" |
| 366 | |
| 367 | print "%-45s %-12s\t %-15s\t %s" % (status.name, formatSize(status.size), status.plugin, check) |
| 368 | |
| 369 | if result.rid == -1: break |
| 370 | |
| 371 | |
| 372 | class RefreshThread(Thread): |
no test coverage detected