Skip to content

Commit

Permalink
Merge pull request #1074 from yaacov/catch-pipliens-with-different-di…
Browse files Browse the repository at this point in the history
…sk-transfers

🐞 When calculating progress, catch all disk transfer piplines
  • Loading branch information
yaacov authored Apr 8, 2024
2 parents 9371a51 + a5f1454 commit c0e66ed
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ const cellRenderers: Record<string, React.FC<PlanVMsCellProps>> = {
return <Timestamp timestamp={value} />;
},
transfer: (props: PlanVMsCellProps) => {
const diskTransfer = props.data.statusVM?.pipeline.find((p) => p?.name === 'DiskTransfer');
const diskTransfer = props.data.statusVM?.pipeline.find((p) =>
p?.name?.startsWith('DiskTransfer'),
);
const annotations: { unit: string } = diskTransfer?.annotations as undefined;

return annotations?.unit ? (
Expand Down

0 comments on commit c0e66ed

Please sign in to comment.