private double getSeekTime(int fileSize) {
        double result = 0;

        if (gen_ != null) {
            result += gen_.sample();
        }

        if (fileSize > 0 && capacity_ != 0) {
            result += ((double) fileSize / capacity_);
        }

        return result;
    }