mirror of
https://github.com/ShaYmez/HBmonitor.git
synced 2026-06-03 14:35:06 -04:00
Update monitor.py
This commit is contained in:
+2
-2
@@ -491,7 +491,7 @@ def build_stats():
|
||||
now = time()
|
||||
if True: #now > build_time + 1:
|
||||
if CONFIG:
|
||||
table = 'd' + dtemplate.render(_table=CTABLE)
|
||||
table = 'd' + dtemplate.render(_table=CTABLE,emaster=EMPTY_MASTERS)
|
||||
dashboard_server.broadcast(table)
|
||||
if BRIDGES and BRIDGES_INC and BTABLE['SETUP']['BRIDGES']:
|
||||
table = 'b' + btemplate.render(_table=BTABLE)
|
||||
@@ -741,7 +741,7 @@ class dashboard(WebSocketServerProtocol):
|
||||
def onOpen(self):
|
||||
logging.info('WebSocket connection open.')
|
||||
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)).encode('utf-8'))
|
||||
for _message in LOGBUF:
|
||||
if _message:
|
||||
|
||||
Reference in New Issue
Block a user