diff options
author | Luca Deri <deri@ntop.org> | 2020-11-27 18:48:25 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-11-27 18:48:25 +0100 |
commit | 6c119c0b062e71ca5962b5d1a46425e53acce9eb (patch) | |
tree | bd3b7c6d0a50cfc3f419ea1eb528c64e1ccb419e | |
parent | daa1c8ef8c8a61899bf3d311f7efa11c090bfe70 (diff) |
Fixes #1032
-rw-r--r-- | src/lib/ndpi_analyze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_analyze.c b/src/lib/ndpi_analyze.c index ddc782fbe..2f136ab0c 100644 --- a/src/lib/ndpi_analyze.c +++ b/src/lib/ndpi_analyze.c @@ -110,7 +110,7 @@ void ndpi_data_add_value(struct ndpi_analyze_struct *s, const u_int32_t value) { https://math.stackexchange.com/questions/683297/how-to-calculate-standard-deviation-without-detailed-historical-data http://mathcentral.uregina.ca/QQ/database/QQ.09.02/carlos1.html */ - s->stddev.sum_square_total += value * value; + s->stddev.sum_square_total += (u_int64_t)value * (u_int64_t)value; } /* ********************************************************************************* */ |