Skip to content

Commit

Permalink
Merge pull request #1748 from magento-performance/MAGETWO-83328
Browse files Browse the repository at this point in the history
[Performance] MAGETWO-83328: Run Nightly PAT on 2.2
  • Loading branch information
vzabaznov authored Nov 22, 2017
2 parents 9fc1138 + 20540c2 commit 08b20b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup/performance-toolkit/benchmark.jmx
Original file line number Diff line number Diff line change
Expand Up @@ -8006,14 +8006,15 @@ try {

//Number of products for one thread
productClusterLength = productCount / threadsNumber;
//Index of the current product from the cluster
i = productClusterLength * currentThreadNum + iterator;

if (iterator >= productClusterLength) {
vars.put("threadIterator_" + currentThreadNum.toString(), "0");
iterator = 0;
}

//Index of the current product from the cluster
i = productClusterLength * currentThreadNum + iterator;

//ids of simple and configurable products to edit
vars.put("simple_product_id", props.get("simple_products_list").get(i).get("id"));
vars.put("configurable_product_id", props.get("configurable_products_list").get(i).get("id"));
Expand Down

0 comments on commit 08b20b5

Please sign in to comment.