Skip to content

Commit

Permalink
Merge pull request mendersoftware#3938 from mzedel/men-6489
Browse files Browse the repository at this point in the history
MEN-6489 - fix: fixed deployment phase size calculation for single device deployments
  • Loading branch information
mzedel authored Aug 14, 2023
2 parents b96b3f5 + eb222c7 commit 646f525
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ Devices that are in the middle of the deployment at the time of abort will finis
<div
class="muted"
>
1% (1 device)
100% (1 device)
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ exports[`RolloutSchedule Component renders correctly 1`] = `
<div
class="muted"
>
1% (1 device)
100% (1 device)
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/deployments/progressChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export const getDeploymentPhasesInfo = deployment => {
} = groupDeploymentStats(deployment, deploymentPhases.length < 2);
const totalDeviceCount = Math.max(device_count, max_devices);

let phases = deploymentPhases.length ? deploymentPhases : [{ id, device_count: totalSuccessCount, batch_size: totalDeviceCount, start_ts: created }];
let phases = deploymentPhases.length ? deploymentPhases : [{ id, device_count: totalSuccessCount, batch_size: 100, start_ts: created }];
return {
currentProgressCount,
phases,
Expand Down

0 comments on commit 646f525

Please sign in to comment.