presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/storage/ShardRecoveryManager.java/ShardRecoveryManager/dataRate
class ShardRecoveryManager:    static DataSize dataRate(DataSize size, Duration duration)
    {
        double rate = size.toBytes() / duration.getValue(SECONDS);
        if (Double.isNaN(rate) || Double.isInfinite(rate)) {
            rate = 0;
        }
        return succinctDataSize(rate, BYTE);
    }