Skip to content

Commit

Permalink
Math floor the % display
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed May 17, 2024
1 parent b1f9d1f commit d49a91d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backup-restore/ui/backup-pane/panes/running-process.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ export default class RunningProcess extends React.Component<Props> {
if (status === 'running') {
return (
(info.processedChanges && info.totalChanges
? (info.processedChanges / info.totalChanges) * 100
? Math.floor(
(info.processedChanges / info.totalChanges) * 100,
)
: 0) + '%'
)
}
Expand Down

0 comments on commit d49a91d

Please sign in to comment.