folly: simplify the stats avgHelper() function
Summary: When the input type is a long double, perform division using long double. In all other cases, divide using double precision. Also fix the EXPECT_EQ() usage in the test case. Test Plan: fbconfig -r common/stats folly && fbmake runtests Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D555433
Showing
Please register or sign in to comment