diff --git a/app/options.py b/app/options.py index 2c236e1b..381b971a 100644 --- a/app/options.py +++ b/app/options.py @@ -453,7 +453,10 @@ if form.getvalue('new_metrics'): sess_rate = '' for i in metric: - labels += str(i[5].split(' ')[1])+',' + label = str(i[5]) + label = label.split(' ')[1] + label = label.split(':') + labels += label[0]+':'+label[1]+',' curr_con += str(i[1])+',' curr_ssl_con += str(i[2])+',' sess_rate += str(i[3])+',' diff --git a/app/templates/ajax/table_metrics.html b/app/templates/ajax/table_metrics.html index 9e2a93cb..0250e283 100644 --- a/app/templates/ajax/table_metrics.html +++ b/app/templates/ajax/table_metrics.html @@ -1,6 +1,6 @@ -
Metrics | +Metrics | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Server | diff --git a/app/templates/metrics.html b/app/templates/metrics.html index 4211d8ea..ffe2d181 100644 --- a/app/templates/metrics.html +++ b/app/templates/metrics.html @@ -1,10 +1,6 @@ {% extends "base.html" %} {% block content %} @@ -20,16 +17,19 @@ th, tr, td { {% for s in servers %} -