Fix indexOf comparison for testing if processor has been seen

Change-Id: Ib58a4ea081c80a9526e12e30c15a15b79eb2b418
This commit is contained in:
Nate Potter 2016-10-18 09:38:44 -07:00
parent 6f2c042bae
commit 33e8d20f9f

View File

@ -79,7 +79,7 @@ const Layout = React.createClass({
var model;
for (var i = 0; i < this.state.systems.length; i++) {
model = this.state.systems[i]['ProcessorSummary']['Model'];
if (model && processorModels.indexOf(model) >= 0) {
if (model && processorModels.indexOf(model) < 0) {
processorModels.push(model);
}
}