Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update VPP_STABLE_VER files
[csit.git]
/
resources
/
tools
/
dash
/
app
/
pal
/
trending
/
graphs.py
diff --git
a/resources/tools/dash/app/pal/trending/graphs.py
b/resources/tools/dash/app/pal/trending/graphs.py
index
6e0bcb5
..
16cb5a2
100644
(file)
--- a/
resources/tools/dash/app/pal/trending/graphs.py
+++ b/
resources/tools/dash/app/pal/trending/graphs.py
@@
-165,7
+165,7
@@
def select_trending_data(data: pd.DataFrame, itm:dict) -> pd.DataFrame:
phy = itm["phy"].split("-")
if len(phy) == 4:
topo, arch, nic, drv = phy
phy = itm["phy"].split("-")
if len(phy) == 4:
topo, arch, nic, drv = phy
- if drv
in ("dpdk", "ixgbe")
:
+ if drv
== "dpdk"
:
drv = ""
else:
drv += "-"
drv = ""
else:
drv += "-"
@@
-203,6
+203,8
@@
def _generate_trending_traces(ttype: str, name: str, df: pd.DataFrame,
return list()
x_axis = [d for d in df["start_time"] if d >= start and d <= end]
return list()
x_axis = [d for d in df["start_time"] if d >= start and d <= end]
+ if not x_axis:
+ return list()
anomalies, trend_avg, trend_stdev = _classify_anomalies(
{k: v for k, v in zip(x_axis, df[_VALUE[ttype]])}
anomalies, trend_avg, trend_stdev = _classify_anomalies(
{k: v for k, v in zip(x_axis, df[_VALUE[ttype]])}