From d49a91d1289b31551e84296f7bafbf6e312b4838 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 17 May 2024 11:44:34 +0200 Subject: [PATCH] Math floor the % display --- src/backup-restore/ui/backup-pane/panes/running-process.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backup-restore/ui/backup-pane/panes/running-process.tsx b/src/backup-restore/ui/backup-pane/panes/running-process.tsx index b10bcc8b9a..09f718f662 100644 --- a/src/backup-restore/ui/backup-pane/panes/running-process.tsx +++ b/src/backup-restore/ui/backup-pane/panes/running-process.tsx @@ -305,7 +305,9 @@ export default class RunningProcess extends React.Component { if (status === 'running') { return ( (info.processedChanges && info.totalChanges - ? (info.processedChanges / info.totalChanges) * 100 + ? Math.floor( + (info.processedChanges / info.totalChanges) * 100, + ) : 0) + '%' ) }