added custom TH/s formatting to graphs

This commit is contained in:
UpstreamData
2022-03-04 13:39:23 -07:00
parent 97a9b59acc
commit 4534b09532
3 changed files with 36 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ async def dashboard_websocket(websocket: WebSocket):
all_miner_data.sort(key=lambda x: x["ip"])
await websocket.send_json({"datetime": datetime.datetime.now().isoformat(),
"miners": all_miner_data})
await asyncio.sleep(5)
await asyncio.sleep(.1)
except WebSocketDisconnect:
print("Websocket disconnected.")
pass