Replaced current block itme with progress through current epoch
This commit is contained in:
parent
9f3b4c48ea
commit
ff88e20fa3
1 changed files with 3 additions and 6 deletions
|
|
@ -78,12 +78,9 @@ async def get_mining_dashboard(gerty):
|
||||||
|
|
||||||
# timeAvg
|
# timeAvg
|
||||||
text = []
|
text = []
|
||||||
time_avg = r.json()['timeAvg'] / 1000
|
progress = "{0}%".format(round(r.json()['progressPercent'], 2))
|
||||||
hours, remainder = divmod(time_avg, 3600)
|
text.append(get_text_item_dict("Progress through current epoch", 12))
|
||||||
minutes, seconds = divmod(remainder, 60)
|
text.append(get_text_item_dict(progress, 20))
|
||||||
time_avg = '{:02} minutes {:02} seconds'.format(int(minutes), int(seconds))
|
|
||||||
text.append(get_text_item_dict("Current block time", 12))
|
|
||||||
text.append(get_text_item_dict(str(time_avg), 20))
|
|
||||||
areas.append(text)
|
areas.append(text)
|
||||||
|
|
||||||
# difficulty adjustment
|
# difficulty adjustment
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue