diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-08-11 12:32:17 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2022-08-11 12:34:46 +0300 |
commit | 2a54d57968d8fe2aefccb23cae0c5a9151df092a (patch) | |
tree | 713b73e3aef3ab2f1984f28c96ce79ca7824c062 /utils/tracers | |
parent | 33e601d33e50f7867a33436f60372b388dc22caa (diff) |
tracers: queue_levels.py: cycle colors
Fix crash when drawing more dataset than the number of colors.
Diffstat (limited to 'utils/tracers')
-rw-r--r-- | utils/tracers/scripts/queue_levels.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/tracers/scripts/queue_levels.py b/utils/tracers/scripts/queue_levels.py index d27dbadf..d7f56880 100644 --- a/utils/tracers/scripts/queue_levels.py +++ b/utils/tracers/scripts/queue_levels.py @@ -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: |