• Ozan Tezcan's avatar
    Fix overflow in redis-benchmark (#11102) · 99ebbee2
    Ozan Tezcan authored
    Fix overflow in redis-benchmark affecting latency measurements on 32bit builds.
    
    If `long` is 4 bytes (typical on 32 bit systems), multiplication overflows.
    Using `long long` will fix the issue as it is guaranteed to be at least 8 bytes. 
    
    Also, I've added a change to reuse `ustime()` for `mstime()`. 
    99ebbee2
redis-benchmark.c 77.9 KB