1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Update villas-hook.cpp

This commit is contained in:
Divya Rajashekhar Laxetti 2019-05-21 17:33:03 +02:00
parent f744d90af9
commit 0e86d41267

View file

@ -222,6 +222,12 @@ check: if (optarg == endptr)
throw RuntimeError("Failed to read from stdin");
}
if (!(smp->flags & SAMPLE_HAS_TS_RECEIVED)){
timespec now = time_now();
smp->ts.received = now;
smp->flags |= SAMPLE_HAS_TS_RECEIVED;
}
logger->debug("Read {} smps from stdin", recv);