From 11f4df474d68707b9220e3ce53f645db071b071f Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Thu, 29 May 2014 16:32:18 -0700 Subject: Cleanup whitespace --- src/caskbench.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/caskbench.cpp') diff --git a/src/caskbench.cpp b/src/caskbench.cpp index 5e46877..31a30e6 100644 --- a/src/caskbench.cpp +++ b/src/caskbench.cpp @@ -463,9 +463,9 @@ main (int argc, char *argv[]) } memset (user_test_ids, -1, sizeof(user_test_ids)); populate_user_tests (opt.tests, num_user_tests, user_test_ids); - num_tests = num_user_tests?num_user_tests:num_perf_tests; + num_tests = num_user_tests ? num_user_tests : num_perf_tests; for(int s = 0; s < num_tests; s++) { - c = num_user_tests ? user_test_ids[s]:s; + c = num_user_tests ? user_test_ids[s] : s; caskbench_context_t context; caskbench_result_t result; @@ -480,13 +480,9 @@ main (int argc, char *argv[]) continue; if(opt.seed_value == NULL) - { srand (0xdeadbeef); - } else - { srand (strtoul(opt.seed_value,&end_ptr,16)); - } context_init(&context, opt.size); if(opt.canvas_width) @@ -563,7 +559,6 @@ main (int argc, char *argv[]) } FINAL: - /* Removed min_run_time, avg_run_time to avoid confusion as min/max/avg run times are captured in json output */ printf("%-20s %-4d %s %d %4.0f", result.test_case_name, result.size, -- cgit v1.3.1-4-g156e