Skip to content

Commit

Permalink
added difficulty trend mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Srayman committed Jul 6, 2019
1 parent 47d8b81 commit 2c9220f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ async def main():
data['difficulty_trend_min'] = str(min(map(float,response['difficulty_trend'])))
data['difficulty_trend_max'] = str(max(map(float,response['difficulty_trend'])))
data['difficulty_trend_median'] = str(statistics.median(map(float,response['difficulty_trend'])))
data['difficulty_trend_mean'] = str(statistics.mean(map(float,response['difficulty_trend'])))
data['difficulty_trend_mode'] = str(statistics.mode(map(float,response['difficulty_trend'])))
data['alarm_operations_count'] = response3['node']['alarm']['operations']['count']
data['ledger_bootstrap_weights_count'] = response3['node']['ledger']['bootstrap_weights']['count']
data['active_roots_count'] = response3['node']['active']['roots']['count']
Expand Down

0 comments on commit 2c9220f

Please sign in to comment.