• Adam Simpkins's avatar
    folly: simplify the stats avgHelper() function · 6bdcff46
    Adam Simpkins authored
    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
    6bdcff46
TimeseriesTest.cpp 21.4 KB