Use proper rounding instead of sprintf based rounding for fps
This commit is contained in:
parent
de9c5a3bed
commit
017085aee7
|
@ -104,7 +104,7 @@ switch ( $data['type'] )
|
|||
case MSG_DATA_WATCH :
|
||||
{
|
||||
$data = unpack( "ltype/imonitor/istate/dfps/ilevel/irate/ddelay/izoom/Cdelayed/Cpaused/Cenabled/Cforced", $msg );
|
||||
$data['fps'] = sprintf( "%.2f", $data['fps'] );
|
||||
$data['fps'] = round( $data['fps'], 2 );
|
||||
$data['rate'] /= RATE_BASE;
|
||||
$data['delay'] = round( $data['delay'], 2 );
|
||||
$data['zoom'] = round( $data['zoom']/SCALE_BASE, 1 );
|
||||
|
|
Loading…
Reference in New Issue