+ added hit count stat

- removed bypass_tor_check as defunct config option
* actually fixed connect stat in cli for real this time
* improved ui stats more
This commit is contained in:
Kevin Froman 2019-06-16 17:34:43 -05:00
parent 3825d3857c
commit ce2095d7f8
10 changed files with 36 additions and 24 deletions

View file

@ -39,7 +39,7 @@ def show_stats(o_inst):
# count stats
'div2' : True,
'Known Peers' : str(len(o_inst.onionrCore.listPeers())),
'Known Peers' : str(max(len(o_inst.onionrCore.listPeers()) - 1, 0)),
'Enabled Plugins' : str(len(o_inst.onionrCore.config.get('plugins.enabled', list()))) + ' / ' + str(len(os.listdir(o_inst.dataDir + 'plugins/'))),
'Stored Blocks' : str(totalBlocks),
'Percent Blocks Signed' : str(round(100 * signedBlocks / max(totalBlocks, 1), 2)) + '%'