mirror of
https://github.com/ShaYmez/HBmonitor.git
synced 2024-11-25 01:08:43 -05:00
Display (True) or not (False) empty master in status
This commit is contained in:
parent
4bad062b76
commit
8bfa667f57
@ -490,7 +490,7 @@ def build_stats():
|
|||||||
now = time()
|
now = time()
|
||||||
if True: #now > build_time + 1:
|
if True: #now > build_time + 1:
|
||||||
if CONFIG:
|
if CONFIG:
|
||||||
table = 'd' + dtemplate.render(_table=CTABLE)
|
table = 'd' + dtemplate.render(_table=CTABLE,emaster=EMPTY_MASTERS)
|
||||||
dashboard_server.broadcast(table)
|
dashboard_server.broadcast(table)
|
||||||
if BRIDGES and BRIDGES_INC:
|
if BRIDGES and BRIDGES_INC:
|
||||||
table = 'b' + btemplate.render(_table=BTABLE['BRIDGES'])
|
table = 'b' + btemplate.render(_table=BTABLE['BRIDGES'])
|
||||||
@ -740,7 +740,7 @@ class dashboard(WebSocketServerProtocol):
|
|||||||
def onOpen(self):
|
def onOpen(self):
|
||||||
logging.info('WebSocket connection open.')
|
logging.info('WebSocket connection open.')
|
||||||
self.factory.register(self)
|
self.factory.register(self)
|
||||||
self.sendMessage(('d' + dtemplate.render(_table=CTABLE)).encode('utf-8'))
|
self.sendMessage(('d' + dtemplate.render(_table=CTABLE,emaster=EMPTY_MASTERS)).encode('utf-8'))
|
||||||
self.sendMessage(('b' + btemplate.render(_table=BTABLE['BRIDGES'])).encode('utf-8'))
|
self.sendMessage(('b' + btemplate.render(_table=BTABLE['BRIDGES'])).encode('utf-8'))
|
||||||
for _message in LOGBUF:
|
for _message in LOGBUF:
|
||||||
if _message:
|
if _message:
|
||||||
|
Loading…
Reference in New Issue
Block a user