dpdk: correct waiting times 07/40407/2
authorGeorgy Borodin <bor1-go@yandex-team.ru>
Wed, 28 Feb 2024 16:04:44 +0000 (17:04 +0100)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 5 Mar 2024 18:53:01 +0000 (18:53 +0000)
When link state interval is 3 and stats interval is 10, updates
for stats will be made every 12 seconds (next number after 10,
that divisible by 3). And if you get counters every 30 secs, you
will get ideal "saw"-line instead of real smooth chart.

This commit makes smooth line on stats intervals that are divisors
of the charts update interval (regardless of link state interval),
and makes it possible to configure them.

Type: fix
Fixes: cb9cadad578297ffd78fa8a33670bdf1ab669e7e
Change-Id: Ia4350467be2b0ec0c1be37c7fda63f43b3330f44
Signed-off-by: Georgy Borodin <bor1-go@yandex-team.ru>

No differences found