fixed a bug with the way the hashrate total works when getting new data on a small subset of miners

This commit is contained in:
UpstreamData
2022-01-05 10:39:36 -07:00
parent 595467487b
commit 4528060fd0

View File

@@ -206,7 +206,7 @@ async def get_data(ip_list: list):
progress_bar_len += 1
asyncio.create_task(update_prog_bar(progress_bar_len))
hashrate_list = [float(item[2].replace(" TH/s", "")) for item in window["ip_table"].Values]
hashrate_list = [float(item[2].replace(" TH/s", "")) for item in window["ip_table"].Values if not item[2] == '']
total_hr = round(sum(hashrate_list), 2)
window["hr_total"].update(f"{total_hr} TH/s")