mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	overlay: Fix underflow for clamping initial values
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
		
							parent
							
								
									8b9f919b63
								
							
						
					
					
						commit
						5e66c8c239
					
				@ -138,7 +138,7 @@ static void chart_update_range(struct chart *chart)
 | 
			
		||||
 | 
			
		||||
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;
 | 
			
		||||
	else if (n >= chart->current_sample)
 | 
			
		||||
		n = chart->current_sample - 1;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user