remove signed stats from stats command
This commit is contained in:
parent
68ebb2f0df
commit
6624a80c68
@ -37,7 +37,6 @@ def show_stats():
|
|||||||
# define stats messages here
|
# define stats messages here
|
||||||
totalBlocks = len(blockmetadb.get_block_list())
|
totalBlocks = len(blockmetadb.get_block_list())
|
||||||
home = identifyhome.identify_home()
|
home = identifyhome.identify_home()
|
||||||
signedBlocks = len(onionrblockapi.Block.getBlocks(signed=True))
|
|
||||||
totalBanned = len(onionrblacklist.OnionrBlackList().getList())
|
totalBanned = len(onionrblacklist.OnionrBlackList().getList())
|
||||||
|
|
||||||
messages = {
|
messages = {
|
||||||
@ -64,9 +63,7 @@ def show_stats():
|
|||||||
str(len(config.get('plugins.enabled', list()))) + ' / ' +
|
str(len(config.get('plugins.enabled', list()))) + ' / ' +
|
||||||
str(len(os.listdir(home + 'plugins/'))),
|
str(len(os.listdir(home + 'plugins/'))),
|
||||||
'Stored Blocks': str(totalBlocks),
|
'Stored Blocks': str(totalBlocks),
|
||||||
'Deleted Blocks': str(totalBanned),
|
'Deleted Blocks': str(totalBanned)
|
||||||
'Percent Blocks Signed':
|
|
||||||
str(round(100 * signedBlocks / max(totalBlocks, 1), 2)) + '%'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# color configuration
|
# color configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user