aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-08-03 11:03:14 +0200
committerTibor Frank <tifrank@cisco.com>2021-08-03 09:04:45 +0000
commit4d16d20536a4af61876d56f0d5fccea36869f7cd (patch)
tree0e49c8d299d437f1c4187884107f86c5febbbb41 /resources
parent307321c52d9f3f88f152cc62623383bf1e9b3cad (diff)
Report: latency comparison
Change-Id: Ic47209e1911317b6f42a7f8257309607d3a21e04 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit c9ddd355f7cab79d6a3f337a658f7c377e099661)
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/presentation/generator_tables.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index fe0eaaa22e..351250a4d2 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -17,6 +17,7 @@
import logging
import csv
+import math
import re
from collections import OrderedDict
@@ -1809,7 +1810,7 @@ def table_comparison(table, input_data):
)
except ZeroDivisionError:
break
- if delta in (None, float(u"nan"), u"nan", u"NaN"):
+ if delta is None or math.isnan(delta):
break
new_row.append({
u"mean": delta * 1e6,