mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-24 06:43:01 +00:00
overlay: Fix underflow for clamping initial values
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
+1
-1
@@ -138,7 +138,7 @@ static void chart_update_range(struct chart *chart)
|
|||||||
|
|
||||||
static double value_at(struct chart *chart, int n)
|
static double value_at(struct chart *chart, int n)
|
||||||
{
|
{
|
||||||
if (n <= chart->current_sample - chart->num_samples)
|
if (n < chart->current_sample - chart->num_samples)
|
||||||
n = chart->current_sample;
|
n = chart->current_sample;
|
||||||
else if (n >= chart->current_sample)
|
else if (n >= chart->current_sample)
|
||||||
n = chart->current_sample - 1;
|
n = chart->current_sample - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user