Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
karanrk committed Feb 8, 2023
1 parent fcc91f0 commit a069d1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion perf-postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ def get_metadata():
global PERCORE_MODE
global SOCKET_CORES
global TIME_ZONE
global CGROUPS
global CGROUP_HASH
global CPUSETS

Expand Down Expand Up @@ -1431,7 +1432,11 @@ def is_safe_path(base_dir, path, follow_symlinks=True):
"xlsxwriter not found to generate excel output. Install xlsxwriter or use .csv"
)
EXCEL_OUT = True

if args.html:
if not args.html.endswith(".html"):
raise SystemExit(
args.html + " isn't a valid html file name, .html files are accepted"
)
# parse header
get_metadata()
zero_division_errcount = 0
Expand Down

0 comments on commit a069d1c

Please sign in to comment.