tracers: queue_levels.py: cycle colors

Fix crash when drawing more dataset than the number of colors.
This commit is contained in:
Sebastian Dröge 2022-08-11 12:32:17 +03:00 committed by Sebastian Dröge
parent 33e601d33e
commit 2a54d57968

View file

@ -91,6 +91,8 @@ if num_plots > 2:
patches = []
for (i, (queue, values)) in enumerate(queues.items()):
# cycle colors
i = i % len(colors)
axis = 0
if args.buffers: