Fix analysis sample rate calculation

This commit is contained in:
Emmanuel Papin 2015-07-28 23:07:02 +02:00
parent 93990b253f
commit f7cfa1ecd4
1 changed files with 2 additions and 2 deletions

View File

@ -825,11 +825,11 @@ useconds_t Monitor::GetAnalysisRate()
else if ( analysis_fps > capturing_fps )
{
Warning( "Analysis fps (%.2f) is greater than capturing fps (%.2f)", analysis_fps, capturing_fps );
return( 0 );
return( 0 );
}
else
{
return( 1000000 / analysis_fps );
return( ( 1000000 / analysis_fps ) - ( 1000000 / capturing_fps ) );
}
}