diff options
author | Tibor Frank <tifrank@cisco.com> | 2024-10-22 13:09:25 +0000 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2024-10-22 13:11:37 +0000 |
commit | 96ca21bd7de1edc29ee6e8fcde1c7cacb7a408f0 (patch) | |
tree | 505d93f704b7e1e9fa3007021095dda22cc9aa9d /csit.infra.dash/app | |
parent | 8183d7cd1700d4ae9e6c90f94197ec2556043d8f (diff) |
C-Dash: Use Gbps in comparison tabels
... instead of Mbps
Change-Id: I929eba26797022c86e931ed4f1f7ebe6d8275e48
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit 120716e561c1d0e3c7d06cbb96d1f70cf3949e5c)
Diffstat (limited to 'csit.infra.dash/app')
-rw-r--r-- | csit.infra.dash/app/cdash/comparisons/tables.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/csit.infra.dash/app/cdash/comparisons/tables.py b/csit.infra.dash/app/cdash/comparisons/tables.py index fa92f3da7f..208dea3dc8 100644 --- a/csit.infra.dash/app/cdash/comparisons/tables.py +++ b/csit.infra.dash/app/cdash/comparisons/tables.py @@ -276,11 +276,6 @@ def comparison_table( if r_data.empty or c_data.empty: return str(), pd.DataFrame() - if format == "html" and "Latency" not in r_sel["ttype"]: - unit_factor, s_unit_factor = (1e6, "M") - else: - unit_factor, s_unit_factor = (1, str()) - # Create Table title and titles of columns with data params = list(r_sel) params.remove(c_params["parameter"]) @@ -321,6 +316,13 @@ def comparison_table( c_std = c_row["stdev"].values[0] if r_mean == 0.0 or c_mean == 0.0: continue + if format == "html" and "Latency" not in r_sel["ttype"]: + if row["unit"] == "bps": + unit_factor, s_unit_factor = (1e9, "G") + else: + unit_factor, s_unit_factor = (1e6, "M") + else: + unit_factor, s_unit_factor = (1, str()) unit.add(f"{s_unit_factor}{row['unit']}") l_name.append(row["name"]) l_r_mean.append(r_mean / unit_factor) |