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:
parent
f744d90af9
commit
0e86d41267
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue