1
0
Fork 0
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:
Steffen Vogel 2015-05-06 13:20:18 +02:00
parent eea6788253
commit 7997f4e7a4

View file

@ -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 */