diff --git a/src/app/widgets/JobStatus/components/ProgressArea.js b/src/app/widgets/JobStatus/components/ProgressArea.js index 9abfa6ab9..00f3a6560 100644 --- a/src/app/widgets/JobStatus/components/ProgressArea.js +++ b/src/app/widgets/JobStatus/components/ProgressArea.js @@ -37,7 +37,7 @@ import { convertMillisecondsToTimeStamp, convertSecondsToTimeStamp } from '../.. */ const ProgressArea = ({ state }) => { const { senderStatus } = state; - const { total, received, elapsedTime, remainingTime, estimatedTime, startTime, isRotaryFile, ovF } = senderStatus; + const { total, received, elapsedTime, remainingTime, startTime, isRotaryFile } = senderStatus; /** * Format given time value to display minutes and seconds @@ -95,13 +95,7 @@ const ProgressArea = ({ state }) => { return getFinishTime(remainingTime); }; - let percentageValue; - if (isRotaryFile) { - percentageValue = Number.isNaN(received / total * 100) ? 0 : (received / total * 100).toFixed(0); - } else { - const adjustedEstimate = estimatedTime / (ovF / 100); - percentageValue = Number.isNaN(((adjustedEstimate - remainingTime) / adjustedEstimate) * 100) ? 0 : (((adjustedEstimate - remainingTime) / adjustedEstimate) * 100).toFixed(0); - } + const percentageValue = Number.isNaN(received / total * 100) ? 0 : (received / total * 100).toFixed(0); return (