aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/pal/report
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-07-18 10:12:45 +0200
committerTibor Frank <tifrank@cisco.com>2022-07-18 10:14:35 +0200
commit2f6295d7c63b7e231b0198ee055468b2fc54fa94 (patch)
tree1689a4e99e6632d9398cebd2999f58fda11123db /resources/tools/dash/app/pal/report
parent16fba5d038e11d16049abd62107880ae5624d383 (diff)
UTI: Small fixes and improvements
Change-Id: Iff83f4340beb51edbfcba230b60b175ac8c2d6ad Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/report')
-rw-r--r--resources/tools/dash/app/pal/report/graphs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/tools/dash/app/pal/report/graphs.py b/resources/tools/dash/app/pal/report/graphs.py
index 0543193d99..76aa8b7793 100644
--- a/resources/tools/dash/app/pal/report/graphs.py
+++ b/resources/tools/dash/app/pal/report/graphs.py
@@ -186,13 +186,13 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict,
if normalize else 1.0
if itm["testtype"] == "mrr":
y_data_raw = itm_data[_VALUE[itm["testtype"]]].to_list()[0]
- y_data = [y * norm_factor for y in y_data_raw]
+ y_data = [(y * norm_factor) for y in y_data_raw]
if len(y_data) > 0:
y_tput_max = \
max(y_data) if max(y_data) > y_tput_max else y_tput_max
else:
y_data_raw = itm_data[_VALUE[itm["testtype"]]].to_list()
- y_data = [y * norm_factor for y in y_data_raw]
+ y_data = [(y * norm_factor) for y in y_data_raw]
if y_data:
y_tput_max = \
max(y_data) if max(y_data) > y_tput_max else y_tput_max
@@ -215,7 +215,7 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict,
if itm["testtype"] == "pdr":
y_lat_row = itm_data[_VALUE["pdr-lat"]].to_list()
- y_lat = [y * norm_factor for y in y_lat_row]
+ y_lat = [(y / norm_factor) for y in y_lat_row]
if y_lat:
y_lat_max = max(y_lat) if max(y_lat) > y_lat_max else y_lat_max
nr_of_samples = len(y_lat)