mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
changed behavior of decimation hook
This commit is contained in:
parent
eea6788253
commit
7997f4e7a4
1 changed files with 2 additions and 2 deletions
|
@ -104,8 +104,8 @@ int hook_fir(struct msg *m, struct path *p)
|
|||
|
||||
int hook_decimate(struct msg *m, struct path *p)
|
||||
{
|
||||
/* Drop every HOOK_DECIMATE_RATIO'th message */
|
||||
return (m->sequence % HOOK_DECIMATE_RATIO == 0) ? -1 : 0;
|
||||
/* Only sent every HOOK_DECIMATE_RATIO'th message */
|
||||
return m->sequence % HOOK_DECIMATE_RATIO;
|
||||
}
|
||||
|
||||
/** @todo Implement */
|
||||
|
|
Loading…
Add table
Reference in a new issue