[common] ringbuffer: allow reverse iteration
This commit is contained in:
1 parent
91d1b8d2cd
commit
69f6532b8d
3 files changed
+30
-10
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user