aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-05-17 10:17:52 +0200
committerTibor Frank <tifrank@cisco.com>2022-05-17 10:22:14 +0200
commit6cc6259b97d3a67072aeb65ee9fd7704af2eb013 (patch)
tree07249928c7aa83393d422592818c4a3d3900ac5f /resources/tools/dash/app
parent88853d7d4e4461198213b9db021fe4e4985c9533 (diff)
feat(uti): Values in hover as integers (no decimals)
Change-Id: I3b4246a77daeb41ec23e6de341fafdfad5ed657b Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app')
-rw-r--r--resources/tools/dash/app/pal/trending/graphs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/tools/dash/app/pal/trending/graphs.py b/resources/tools/dash/app/pal/trending/graphs.py
index 52e86d8e83..a3357e49fb 100644
--- a/resources/tools/dash/app/pal/trending/graphs.py
+++ b/resources/tools/dash/app/pal/trending/graphs.py
@@ -214,7 +214,7 @@ def _generate_trending_traces(ttype: str, name: str, df: pd.DataFrame,
d_type = "trex" if row["dut_type"] == "none" else row["dut_type"]
hover_itm = (
f"date: {row['start_time'].strftime('%d-%m-%Y %H:%M:%S')}<br>"
- f"<prop> [{row[_UNIT[ttype]]}]: {row[_VALUE[ttype]]}<br>"
+ f"<prop> [{row[_UNIT[ttype]]}]: {row[_VALUE[ttype]]:,.0f}<br>"
f"<stdev>"
f"{d_type}-ref: {row['dut_version']}<br>"
f"csit-ref: {row['job']}/{row['build']}<br>"
@@ -223,7 +223,7 @@ def _generate_trending_traces(ttype: str, name: str, df: pd.DataFrame,
if ttype == "mrr":
stdev = (
f"stdev [{row['result_receive_rate_rate_unit']}]: "
- f"{row['result_receive_rate_rate_stdev']}<br>"
+ f"{row['result_receive_rate_rate_stdev']:,.0f}<br>"
)
else:
stdev = ""
@@ -239,8 +239,8 @@ def _generate_trending_traces(ttype: str, name: str, df: pd.DataFrame,
d_type = "trex" if row["dut_type"] == "none" else row["dut_type"]
hover_itm = (
f"date: {row['start_time'].strftime('%d-%m-%Y %H:%M:%S')}<br>"
- f"trend [pps]: {avg}<br>"
- f"stdev [pps]: {stdev}<br>"
+ f"trend [pps]: {avg:,.0f}<br>"
+ f"stdev [pps]: {stdev:,.0f}<br>"
f"{d_type}-ref: {row['dut_version']}<br>"
f"csit-ref: {row['job']}/{row['build']}<br>"
f"hosts: {', '.join(row['hosts'])}"
@@ -295,7 +295,7 @@ def _generate_trending_traces(ttype: str, name: str, df: pd.DataFrame,
anomaly_color.append(_ANOMALY_COLOR[anomaly])
hover_itm = (
f"date: {x_axis[idx].strftime('%d-%m-%Y %H:%M:%S')}<br>"
- f"trend [pps]: {trend_avg[idx]}<br>"
+ f"trend [pps]: {trend_avg[idx]:,.0f}<br>"
f"classification: {anomaly}"
)
if ttype == "pdr-lat":