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

remove timestamp prepending

This commit is contained in:
Steffen Vogel 2015-06-02 22:30:08 +02:00
parent a3908af4da
commit ecbc4bc247
3 changed files with 0 additions and 15 deletions

View file

@ -36,8 +36,6 @@
#define IPPROTO_S2SS 137
#define ETH_P_S2SS 0xBABE
#define TOOLS_USE_TIMESTAMP 1
/* Hook function configuration */
#define HOOK_FIR_INDEX 1 /**< The first value of message should be filtered. */
#define HOOK_TS_INDEX -1 /**< The last value of message should be overwritten by a timestamp. */

View file

@ -126,12 +126,6 @@ int main(int argc, char *argv[])
if (msg_verify(&pool[i]))
warn("Failed to verify message");
#if TOOLS_USE_TIMESTAMP
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
fprintf(stdout, "%17.6f\t", ts.tv_sec + ts.tv_nsec / 1e9);
#endif
msg_fprint(stdout, &pool[i]);
}
}

View file

@ -125,13 +125,6 @@ int main(int argc, char *argv[])
while (!feof(stdin)) {
for (int i = 0; i < node->combine; i++) {
msg_fscan(stdin, &pool[i]);
#if TOOLS_USE_TIMESTAMP
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
fprintf(stdout, "%17.6f\t", ts.tv_sec + ts.tv_nsec / 1e9);
#endif
msg_fprint(stdout, &pool[i]);
}