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::chrono;
|
||||
|
||||
#define APP_VER "2.0.t9"
|
||||
#define APP_VER "2.0.t10"
|
||||
#define APP_NAME "Motion Watch"
|
||||
#define REC_LOG_NAME "rec_log_lines.html"
|
||||
#define DET_LOG_NAME "det_log_lines.html"
|
||||
|
|
|
@ -33,14 +33,10 @@ void eventLoop(shared_t *share)
|
|||
auto event = it->second;
|
||||
auto timeDiff = genEpoch() - event.createTime;
|
||||
|
||||
// future time protection. this should never occur but
|
||||
// this is in place in case the system time is incorrect.
|
||||
if (timeDiff > 0)
|
||||
{
|
||||
// wait at least 61 seconds before processing the event in
|
||||
// queue.
|
||||
if (timeDiff < 61) sleep(61 - timeDiff);
|
||||
|
||||
if ((timeDiff > 0) && (timeDiff > 60))
|
||||
{
|
||||
try
|
||||
{
|
||||
wrOutVod(event, share);
|
||||
|
|
Loading…
Reference in New Issue
Block a user