Skip to content

Commit

Permalink
[logstash/pipeline-workers] show 0 when 0 (#33253)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz authored Mar 18, 2019
1 parent 03afe53 commit 670943b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class PipelineEditorUi extends React.Component {
username,
} = this.props;

const pipelineWorkers = settings['pipeline.workers'] ? settings['pipeline.workers'] : 1;

const pipelineWorkersSet = typeof settings['pipeline.workers'] === 'number';
const pipelineWorkers = pipelineWorkersSet ? settings['pipeline.workers'] : 1;
this.state = {
maxBytesNumber: settings['queue.max_bytes.number'],
maxBytesUnit: settings['queue.max_bytes.units'],
Expand Down

0 comments on commit 670943b

Please sign in to comment.