Skip to content

Commit

Permalink
Sam's very correct nit
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Clark <[email protected]>
  • Loading branch information
lrstewart and goatgoose authored Feb 27, 2025
1 parent 85dcdb0 commit 00ce248
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/s2n_mem_usage_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ int main(int argc, char **argv)
ssize_t mem_per_conn = handshake_diff / (connectionsToUse * 2);
ssize_t kbs_per_conn = mem_per_conn / 1024;

if (kbs_per_conn < expected_kbs_per_conn
|| kbs_per_conn > expected_kbs_per_conn) {
if (kbs_per_conn != expected_kbs_per_conn) {
printf("\nExpected KB per connection: %i\n", expected_kbs_per_conn);
printf("\nActual KB per connection: %li\n", kbs_per_conn);
printf("This is a %.2f%% change\n",
Expand Down

0 comments on commit 00ce248

Please sign in to comment.