diff --git a/observer.py b/observer.py index a43d28c..48b01bf 100644 --- a/observer.py +++ b/observer.py @@ -352,6 +352,7 @@ def main(refresh=None, page=0, per_page=None, first=None, last=None, style=None) emission=coinbase.get(), hf=hfinfo.get(), active_sns=active_sns, + active_swarms=len(set(x['swarm_id'] for x in active_sns)), inactive_sns=inactive_sns, awaiting_sns=awaiting_sns, blocks=blocks, @@ -385,6 +386,7 @@ def sns(): return flask.render_template('service_nodes.html', info=info.get(), active_sns=active, + active_swarms=len(set(x['swarm_id'] for x in active)), awaiting_sns=awaiting, inactive_sns=inactive, ) diff --git a/static/style.css b/static/style.css index 46352ed..6e1eb60 100644 --- a/static/style.css +++ b/static/style.css @@ -467,7 +467,7 @@ td span.checkpoint-not-signed { color: #c50022; } text-overflow: ellipsis; } -h3 .sn-count { +h3 .sn-count, h4 .sn-count { font-weight: bold; } diff --git a/templates/include/service_nodes_lists.html b/templates/include/service_nodes_lists.html index aa68571..acc0e91 100644 --- a/templates/include/service_nodes_lists.html +++ b/templates/include/service_nodes_lists.html @@ -17,6 +17,9 @@

Active Service Nodes ({{active_sns | count}})

+

Current storage swarm count: + {{active_swarms}} +

{%include 'include/sn_active.html'%}