diff --git a/server/include/config.h b/server/include/config.h index 94155a252..8e4164a89 100644 --- a/server/include/config.h +++ b/server/include/config.h @@ -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 { diff --git a/server/src/receive.c b/server/src/receive.c index f9e14952f..c17cd9c9c 100644 --- a/server/src/receive.c +++ b/server/src/receive.c @@ -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; icombine; i++) { + for (int i = 0; i < node->combine; i++) { msg_fscan(stdin, &pool[i]); #if TOOLS_USE_TIMESTAMP