提交 6d43b3f3 authored 作者: blu's avatar blu

init

上级 83a65f96
...@@ -661,13 +661,13 @@ private: ...@@ -661,13 +661,13 @@ private:
makeEvent(EV_MSG_EVENT_MOTION_START, evtStartTmOrig); makeEvent(EV_MSG_EVENT_MOTION_START, evtStartTmOrig);
auto tmp = chrono::duration_cast<chrono::seconds>(chrono::system_clock::now().time_since_epoch()).count(); auto tmp = chrono::duration_cast<chrono::seconds>(chrono::system_clock::now().time_since_epoch()).count();
packetTsDelta = tmp - packetTm; packetTsDelta = tmp - packetTm;
spdlog::info("evmlmotion {} packet ts delta: {}", selfId, packetTsDelta); spdlog::info("{} packet ts delta: {}", selfId, packetTsDelta);
} }
} }
else { else {
if(dura > detPara.pre) { if(dura > detPara.pre) {
evtState= NONE; evtState= NONE;
spdlog::info("state: PRE->NONE ({}, {})", dura, evtCnt); spdlog::info("{} state: PRE->NONE ({}, {})", selfId, dura, evtCnt);
evtCnt = 0; evtCnt = 0;
} }
} }
...@@ -677,7 +677,7 @@ private: ...@@ -677,7 +677,7 @@ private:
if(!hasEvent) { if(!hasEvent) {
if(dura > (int)(detPara.post/2)) { if(dura > (int)(detPara.post/2)) {
evtState = POST; evtState = POST;
spdlog::info("state: IN->POST ({}, {})", dura, evtCnt); spdlog::info("{} state: IN->POST ({}, {})", selfId, dura, evtCnt);
evtCnt = 0; evtCnt = 0;
} }
} }
...@@ -689,7 +689,7 @@ private: ...@@ -689,7 +689,7 @@ private:
makeEvent(EV_MSG_EVENT_MOTION_START, packetTs); makeEvent(EV_MSG_EVENT_MOTION_START, packetTs);
spdlog::warn("evmlmotion {} event video continued over {} minutes, force segmenting and continue", devSn, detPara.maxDuration); spdlog::warn("evmlmotion {} event video continued over {} minutes, force segmenting and continue", devSn, detPara.maxDuration);
} }
spdlog::debug("state: IN->IN ({}, {})", dura, evtCnt); spdlog::debug("{} state: IN->IN ({}, {})",selfId, dura, evtCnt);
evtCnt = 0; evtCnt = 0;
} }
break; break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论