revert folly/Benchmark.cpp
authorPaul Tarjan <ptarjan@fb.com>
Fri, 31 May 2013 21:55:52 +0000 (14:55 -0700)
committerOwen Yamauchi <oyamauchi@fb.com>
Mon, 3 Jun 2013 19:23:44 +0000 (12:23 -0700)
Summary: revert the breaking change

Test Plan: none

Reviewed By: delong.j@fb.com

FB internal diff: D832143

Blame Revision: D830883

folly/Benchmark.cpp

index 2fb3515269b0d301db8c5a2e9b25b0c321e2e43f..6fc442000cc4707f35ce65889426b7167769d8b7 100644 (file)
@@ -210,8 +210,7 @@ static double runBenchmarkGetNSPerIteration(const BenchmarkFun& fun,
   // the clock resolution is worse than that, it will be larger. In
   // essence we're aiming at making the quantization noise 0.01%.
   static const auto minNanoseconds =
-    max(FLAGS_bm_min_usec * 1000UL,
-        min(resolutionInNs * 100000, 1000000000ULL));
+    max(FLAGS_bm_min_usec * 1000UL, min(resolutionInNs * 100000, 1000000000UL));
 
   // We do measurements in several epochs and take the minimum, to
   // account for jitter.