Commit 5c380873 authored by David Auer's avatar David Auer
Browse files

Random Slicing: Work around rounding error when only one host remains

parent 26562bf7
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -49,11 +49,12 @@ public:
    static bool constexpr DEBUG_VSPACE = false;
    // constants declaring the min and max values for the
    // virtual allocation space.
    // right now, it spans from 0 to 2^64-1 blocks/files/whatever
    // right now, it spans from 0 to (2^64-1)/10 blocks/files/whatever
    static uint64_t constexpr VSPACE_MIN = 0;
    static uint64_t constexpr VSPACE_MAX =
            DEBUG_VSPACE ? 1000000
                         : UINT64_MAX; // HARD DEBUG TODO(dauer) UINT64_MAX;
            DEBUG_VSPACE ? 1000000 : UINT64_MAX / 10;
    // divide by 10 brings the number down a bit to prevent overflows due to
    // rounding

    static double constexpr DOUBLE_ALLOWED_ERROR =
            DEBUG_VSPACE ? 1.0e-5 : 1.0e-14;