Skip to content

Commit

Permalink
reactor: switch indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Glauber Costa <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
Glauber Costa authored and avikivity committed Aug 9, 2018
1 parent d5ad5f8 commit 8ad870f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions core/reactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4066,15 +4066,15 @@ class disk_config_params {

cfg.capacity = per_io_queue(_capacity);
if (cfg.capacity == std::numeric_limits<unsigned>::max()) {
cfg.disk_bytes_write_to_read_multiplier = (io_queue::read_request_base_count * p.read_bytes_rate) / p.write_bytes_rate;
cfg.disk_req_write_to_read_multiplier = (io_queue::read_request_base_count * p.read_req_rate) / p.write_req_rate;
cfg.max_req_count = max_bandwidth == std::numeric_limits<uint64_t>::max()
? std::numeric_limits<unsigned>::max()
: io_queue::read_request_base_count * per_io_queue(max_iops * _latency_goal.count());
cfg.max_bytes_count = max_iops == std::numeric_limits<uint64_t>::max()
? std::numeric_limits<unsigned>::max()
: io_queue::read_request_base_count * per_io_queue(max_bandwidth * _latency_goal.count());
cfg.mountpoint = p.mountpoint;
cfg.disk_bytes_write_to_read_multiplier = (io_queue::read_request_base_count * p.read_bytes_rate) / p.write_bytes_rate;
cfg.disk_req_write_to_read_multiplier = (io_queue::read_request_base_count * p.read_req_rate) / p.write_req_rate;
cfg.max_req_count = max_bandwidth == std::numeric_limits<uint64_t>::max()
? std::numeric_limits<unsigned>::max()
: io_queue::read_request_base_count * per_io_queue(max_iops * _latency_goal.count());
cfg.max_bytes_count = max_iops == std::numeric_limits<uint64_t>::max()
? std::numeric_limits<unsigned>::max()
: io_queue::read_request_base_count * per_io_queue(max_bandwidth * _latency_goal.count());
cfg.mountpoint = p.mountpoint;
} else {
cfg.disk_bytes_write_to_read_multiplier = 1;
cfg.disk_req_write_to_read_multiplier = 1;
Expand Down

0 comments on commit 8ad870f

Please sign in to comment.