diff options
author | headshog <craaaaaachind@gmail.com> | 2023-05-16 19:05:48 +0300 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-05-20 15:09:51 +0200 |
commit | dd7198fcafb419779ab8803a99528d7609bac53d (patch) | |
tree | d07fb46adfc0d5697474fae2c194b6ac4406c47d /src | |
parent | 5ca6f0ac62d6b2c346bc99d2a1b1200fe9df7917 (diff) |
fixed numeric truncation error
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_api.h | 2 | ||||
-rw-r--r-- | src/lib/ndpi_analyze.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index ecb6c8271..0a420accb 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -1698,7 +1698,7 @@ extern "C" { void ndpi_init_data_analysis(struct ndpi_analyze_struct *s, u_int16_t _max_series_len); void ndpi_free_data_analysis(struct ndpi_analyze_struct *d, u_int8_t free_pointer); void ndpi_reset_data_analysis(struct ndpi_analyze_struct *d); - void ndpi_data_add_value(struct ndpi_analyze_struct *s, const u_int32_t value); + void ndpi_data_add_value(struct ndpi_analyze_struct *s, const u_int64_t value); /* Sliding-window only */ float ndpi_data_window_average(struct ndpi_analyze_struct *s); diff --git a/src/lib/ndpi_analyze.c b/src/lib/ndpi_analyze.c index 1b3b9cc4f..75b650db5 100644 --- a/src/lib/ndpi_analyze.c +++ b/src/lib/ndpi_analyze.c @@ -93,7 +93,7 @@ void ndpi_reset_data_analysis(struct ndpi_analyze_struct *d) { /* Add a new point to analyze */ -void ndpi_data_add_value(struct ndpi_analyze_struct *s, const u_int32_t value) { +void ndpi_data_add_value(struct ndpi_analyze_struct *s, const u_int64_t value) { if(!s) return; |