|  | @@ -44,7 +44,6 @@
 | 
	
		
			
				|  |  |  			into var_interpolation.x0, var_interpolation.y0, var_interpolation.x1, var_interpolation.y1
 | 
	
		
			
				|  |  |  			from
 | 
	
		
			
				|  |  |  			(
 | 
	
		
			
				|  |  | -			
 | 
	
		
			
				|  |  |  				select t1.temperature as x0, t1.correction as y0
 | 
	
		
			
				|  |  |  				from public.calc_temperatures_correction as t1
 | 
	
		
			
				|  |  |  				where t1.temperature <= var_temperature
 | 
	
	
		
			
				|  | @@ -70,10 +69,11 @@
 | 
	
		
			
				|  |  |  			
 | 
	
		
			
				|  |  |  			end if;
 | 
	
		
			
				|  |  |  			
 | 
	
		
			
				|  |  | -            var_result := (var_temperature - var_interpolation.x0) * (var_interpolation.y1 - var_interpolation.y0) / var_denominator + var_interpolation.y0;
 | 
	
		
			
				|  |  | -			raise notice 'Результат: %', var_result;
 | 
	
		
			
				|  |  | +                       var_result := (var_temperature - var_interpolation.x0) * (var_interpolation.y1 - var_interpolation.y0) / var_denominator + var_interpolation.y0;
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		end;
 | 
	
		
			
				|  |  |  		end if;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +	        raise notice 'Результат: %', var_result;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |   end $$;
 |