Skip to content

Commit a069d1c

Browse files
committed
minor bug fix
1 parent fcc91f0 commit a069d1c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

perf-postprocess.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ def get_metadata():
634634
global PERCORE_MODE
635635
global SOCKET_CORES
636636
global TIME_ZONE
637+
global CGROUPS
637638
global CGROUP_HASH
638639
global CPUSETS
639640

@@ -1431,7 +1432,11 @@ def is_safe_path(base_dir, path, follow_symlinks=True):
14311432
"xlsxwriter not found to generate excel output. Install xlsxwriter or use .csv"
14321433
)
14331434
EXCEL_OUT = True
1434-
1435+
if args.html:
1436+
if not args.html.endswith(".html"):
1437+
raise SystemExit(
1438+
args.html + " isn't a valid html file name, .html files are accepted"
1439+
)
14351440
# parse header
14361441
get_metadata()
14371442
zero_division_errcount = 0

0 commit comments

Comments
 (0)