1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
This commit is contained in:
Steffen Vogel 2015-05-06 13:21:26 +02:00
parent be6d4262d7
commit 06b7b1ec92
3 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@
/* 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. */
#define HOOK_DECIMATE_RATIO 30 /**< Only forward every 10th message to the destination nodes. */
#define HOOK_DECIMATE_RATIO 30 /**< Only forward every 30th message to the destination nodes. */
/** Global configuration */
struct settings {

View file

@ -113,7 +113,7 @@ int main(int argc, char *argv[])
while (1) {
int recv = node_read(node, pool, node->combine, 0, node->combine);
for (int i=0; i<recv; i++) {
for (int i = 0; i < recv; i++) {
if (msg_verify(&pool[i]))
warn("Failed to verify message");

View file

@ -108,7 +108,7 @@ int main(int argc, char *argv[])
node_start_defer(node);
while (!feof(stdin)) {
for (int i=0; i<node->combine; i++) {
for (int i = 0; i < node->combine; i++) {
msg_fscan(stdin, &pool[i]);
#if TOOLS_USE_TIMESTAMP