[common] ringbuffer: allow reverse iteration

This commit is contained in:
Geoffrey McRae committed 2021-08-09 14:06:32 +10:00
1 parent 91d1b8d2cd
commit 69f6532b8d
3 files changed
+30 -10

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ static int graphs_render(void * udata, bool interactive,
continue;
struct BufferMetrics metrics = {};
ringbuffer_forEach(graph->buffer, rbCalcMetrics, &metrics);
ringbuffer_forEach(graph->buffer, rbCalcMetrics, &metrics, false);
if (metrics.sum > 0.0f)
{