Skip to content
Snippets Groups Projects
Unverified Commit 22e8dce5 authored by Petr Špaček's avatar Petr Špaček
Browse files

plot-packet-rate: detect too many input files

Formerly extra files were drawn using the same colors as files withing
the limit and it lead risk of misinterpreting the data.
parent 39a6bf58
No related tags found
No related merge requests found
Pipeline #95491 failed
......@@ -136,6 +136,10 @@ def main():
# initialize graph
ax, plot_props = init_plot(args.title)
if len(plot_props) < len(args.csv_file):
logging.critical('more than %d input files at once is not supported, got %d',
len(plot_props), len(args.csv_file))
sys.exit(3)
for csv_path, line_props in zip(args.csv_file, plot_props):
try:
with open(csv_path) as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment