v.20.t10
Event files are still not concatenating. I suspect the issue was in eventLoop() caching old event objects. Changed up the loop to so it will grab latest event object on each iteration.
This commit is contained in:
parent
061c2571b4
commit
533c27d9cb
|
@ -38,7 +38,7 @@ using namespace std;
|
||||||
using namespace std::filesystem;
|
using namespace std::filesystem;
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
|
|
||||||
#define APP_VER "2.0.t9"
|
#define APP_VER "2.0.t10"
|
||||||
#define APP_NAME "Motion Watch"
|
#define APP_NAME "Motion Watch"
|
||||||
#define REC_LOG_NAME "rec_log_lines.html"
|
#define REC_LOG_NAME "rec_log_lines.html"
|
||||||
#define DET_LOG_NAME "det_log_lines.html"
|
#define DET_LOG_NAME "det_log_lines.html"
|
||||||
|
|
10
src/main.cpp
10
src/main.cpp
|
@ -33,14 +33,10 @@ void eventLoop(shared_t *share)
|
||||||
auto event = it->second;
|
auto event = it->second;
|
||||||
auto timeDiff = genEpoch() - event.createTime;
|
auto timeDiff = genEpoch() - event.createTime;
|
||||||
|
|
||||||
// future time protection. this should never occur but
|
// wait at least 61 seconds before processing the event in
|
||||||
// this is in place in case the system time is incorrect.
|
// queue.
|
||||||
if (timeDiff > 0)
|
if ((timeDiff > 0) && (timeDiff > 60))
|
||||||
{
|
{
|
||||||
// wait at least 61 seconds before processing the event in
|
|
||||||
// queue.
|
|
||||||
if (timeDiff < 61) sleep(61 - timeDiff);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
wrOutVod(event, share);
|
wrOutVod(event, share);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user