BUGFIX: When creating new portlist entry we forgot to initialize span
variable, which caused wrong first 5 rates of every port entry.
Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/serv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/serv.c b/src/serv.c
index f3faaa0..2b536c7 100644
--- a/src/serv.c
+++ b/src/serv.c
@@ -240,6 +240,7 @@ static struct portlistent *addtoportlist(struct portlist *list,
servlook(port, protocol, ptemp->servname, 10);
proto_counter_reset(&ptemp->serv_count);
+ proto_counter_reset(&ptemp->span);
list->count++;
ptemp->idx = list->count;
--
1.9.1