diff options
author | Luca Deri <deri@ntop.org> | 2021-02-05 10:59:09 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-02-05 10:59:09 +0100 |
commit | 60b58dbd67b47b0145c36f3747f83f857905bfbf (patch) | |
tree | 0454d63a758c66bea26d8d56dd616dd67a2bcace /example/ndpiReader.c | |
parent | 1eedf734be7b2cfe2ac5e0d497c19c77b877ae2f (diff) |
RSI enhancements
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index a4fb74246..1e127d1cd 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3587,7 +3587,7 @@ void analyzeUnitTest() { ndpi_data_min(s), ndpi_data_max(s)); #endif - ndpi_free_data_analysis(s); + ndpi_free_data_analysis(s, 1); #ifdef RUN_DATA_ANALYSIS_THEN_QUIT exit(0); @@ -3675,7 +3675,7 @@ void analysisUnitTest() { printf("Min/Max: %u/%u\n", ndpi_data_min(s), ndpi_data_max(s)); } - ndpi_free_data_analysis(s); + ndpi_free_data_analysis(s, 1); } /* *********************************************** */ @@ -3704,7 +3704,7 @@ void rsiUnitTest() { for(i=0; i<n; i++) { float rsi = ndpi_rsi_add_value(&s, v[i]); -#if 0 +#if DEBUG printf("%2d) RSI = %f\n", i, rsi); #endif } |