From 9a10210a2a4f06c46a905dd9270619c0f21287ae Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 19 May 2015 09:52:30 -0700 Subject: [PATCH] replaced always-true comparison in PrintSessionStats with preprocessor checks --- src/ssl.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index df41ecb0a..258b91db6 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -6224,16 +6224,17 @@ int wolfSSL_get_session_stats(word32* active, word32* total, word32* peak, } printf(" chi-square = %5.1f, d.f. = %d\n", chiSquare, SESSION_ROWS - 1); - if (SESSION_ROWS == 11) + #if (SESSION_ROWS == 11) printf(" .05 p value = 18.3, chi-square should be less\n"); - else if (SESSION_ROWS == 211) + #elif (SESSION_ROWS == 211) printf(".05 p value = 244.8, chi-square should be less\n"); - else if (SESSION_ROWS == 5981) + #elif (SESSION_ROWS == 5981) printf(".05 p value = 6161.0, chi-square should be less\n"); - else if (SESSION_ROWS == 3) + #elif (SESSION_ROWS == 3) printf(".05 p value = 6.0, chi-square should be less\n"); - else if (SESSION_ROWS == 2861) + #elif (SESSION_ROWS == 2861) printf(".05 p value = 2985.5, chi-square should be less\n"); + #endif printf("\n"); return ret;