diff options
author | Luca Deri <deri@ntop.org> | 2021-02-05 12:38:41 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-02-05 12:38:41 +0100 |
commit | 8dd7716ae5446c2e0f338f572cf2c544ff00da1c (patch) | |
tree | 8ba7e54cc686e7e8102d5d795ed39c299b1f371b /example/ndpiReader.c | |
parent | 60b58dbd67b47b0145c36f3747f83f857905bfbf (diff) |
Implemented more efficient and memory savvy RSI
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 1e127d1cd..5ece4e414 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3699,12 +3699,12 @@ void rsiUnitTest() { }; u_int i, n = sizeof(v) / sizeof(unsigned int); - ndpi_init_rsi(&s, 8); + assert(ndpi_alloc_rsi(&s, 8) == 0); for(i=0; i<n; i++) { float rsi = ndpi_rsi_add_value(&s, v[i]); -#if DEBUG +#if 0 printf("%2d) RSI = %f\n", i, rsi); #endif } |