report both capture_fps and analysis_fps
This commit is contained in:
parent
c9bd09ae7b
commit
28a3868069
|
@ -117,8 +117,10 @@ if ( sem_acquire($semaphore,1) !== false ) {
|
|||
$data = unpack('ltype', $msg);
|
||||
switch ( $data['type'] ) {
|
||||
case MSG_DATA_WATCH :
|
||||
$data = unpack('ltype/imonitor/istate/dfps/ilevel/irate/ddelay/izoom/Cdelayed/Cpaused/Cenabled/Cforced', $msg);
|
||||
$data = unpack('ltype/imonitor/istate/dfps/dcapturefps/danalysisfps/ilevel/irate/ddelay/izoom/Cdelayed/Cpaused/Cenabled/Cforced', $msg);
|
||||
$data['fps'] = round( $data['fps'], 2 );
|
||||
$data['capturefps'] = round( $data['capturefps'], 2 );
|
||||
$data['analysisfps'] = round( $data['analysisfps'], 2 );
|
||||
$data['rate'] /= RATE_BASE;
|
||||
$data['delay'] = round( $data['delay'], 2 );
|
||||
$data['zoom'] = round( $data['zoom']/SCALE_BASE, 1 );
|
||||
|
|
|
@ -208,6 +208,8 @@ function getStreamCmdResponse(respObj, respText) {
|
|||
if ( respObj.status ) {
|
||||
streamStatus = respObj.status;
|
||||
$j('#fpsValue').text(streamStatus.fps);
|
||||
$j('#capturefpsValue').text(streamStatus.capturefps);
|
||||
$j('#analysisfpsValue').text(streamStatus.analysisfps);
|
||||
|
||||
setAlarmState(streamStatus.state);
|
||||
|
||||
|
|
Loading…
Reference in New Issue