mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
update receive timestamp in villas-hook
This commit is contained in:
parent
4526f8b534
commit
7d28fbd6c4
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <villas/timing.h>
|
||||
#include <villas/sample.h>
|
||||
#include <villas/hook.h>
|
||||
#include <villas/utils.h>
|
||||
|
@ -143,6 +144,8 @@ int main(int argc, char *argv[])
|
|||
ret = sample_fscan(stdin, hi.samples[j], NULL);
|
||||
if (ret < 0)
|
||||
break;
|
||||
|
||||
hi.samples[j]->ts.received = time_now();
|
||||
}
|
||||
|
||||
debug(15, "Read %d samples from stdin", cnt);
|
||||
|
|
Loading…
Add table
Reference in a new issue