mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cleanups
This commit is contained in:
parent
be6d4262d7
commit
06b7b1ec92
3 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue