Corrected rate to use RATE_SCALE and not SCALE_SCALE.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@935 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
3f5241c80a
commit
d61514c15d
|
@ -391,7 +391,7 @@ function zmaCheck( $monitor )
|
|||
|
||||
function createVideo( $event, $rate, $scale, $overwrite=0 )
|
||||
{
|
||||
$command = ZM_PATH_BIN."/zmvideo.pl -e ".$event['Id']." -r ".sprintf( "%.2f", ($rate/SCALE_SCALE) )." -s ".sprintf( "%.2f", ($scale/SCALE_SCALE) );
|
||||
$command = ZM_PATH_BIN."/zmvideo.pl -e ".$event['Id']." -r ".sprintf( "%.2f", ($rate/RATE_SCALE) )." -s ".sprintf( "%.2f", ($scale/SCALE_SCALE) );
|
||||
if ( $overwrite )
|
||||
$command .= " -o";
|
||||
$result = exec( $command, $output, $status );
|
||||
|
|
Loading…
Reference in New Issue