Use proper rounding instead of sprintf based rounding for fps

This commit is contained in:
Isaac Connor 2016-10-20 11:49:35 -04:00
parent de9c5a3bed
commit 017085aee7
1 changed files with 1 additions and 1 deletions

View File

@ -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 );