mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-26 00:08:30 -04:00
add debug
This commit is contained in:
1 parent
64193c3368
commit
cb99d709c5
1 file changed
+6
-1
@@ -334,15 +334,19 @@ var statusCmdReq = new Request.JSON( { url: monitorUrl+thisUrl, method: 'get', d
|
||||
var statusCmdTimer = null;
|
||||
|
||||
function getStatusCmdResponse( respObj, respText ) {
|
||||
console.log("Got statusCmdQuery");
|
||||
watchdogOk("status");
|
||||
if ( statusCmdTimer )
|
||||
statusCmdTimer = clearTimeout( statusCmdTimer );
|
||||
|
||||
if ( respObj.result == 'Ok' ) {
|
||||
console.log("Got ok for status");
|
||||
$('fpsValue').set( 'text', respObj.monitor.FrameRate );
|
||||
setAlarmState( respObj.monitor.Status );
|
||||
} else
|
||||
} else {
|
||||
console.log("Got bad response for status");
|
||||
checkStreamForErrors("getStatusCmdResponse",respObj);
|
||||
}
|
||||
|
||||
var statusCmdTimeout = statusRefreshTimeout;
|
||||
if ( alarmState == STATE_ALARM || alarmState == STATE_ALERT )
|
||||
@@ -351,6 +355,7 @@ function getStatusCmdResponse( respObj, respText ) {
|
||||
}
|
||||
|
||||
function statusCmdQuery() {
|
||||
console.log("Sending statusCmdQuery");
|
||||
statusCmdReq.send();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user