Skip to content

Commit

Permalink
fix: progress not shown a number (#1399)
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas authored Mar 21, 2024
1 parent 91ee7d5 commit 9ebd037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/printer/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
.filter(result => result > 0)

const printProgress = printProgressCalculationResults
.reduce((a, b) => a + b, 0) / printProgressCalculationResults.length
.reduce((a, b) => a + b, 0) / printProgressCalculationResults.length || 0

return printProgress
},
Expand Down Expand Up @@ -230,7 +230,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
.filter(result => result > 0)

const etaLeft = printEtaCalculationResults
.reduce((a, b) => a + b, 0) / printEtaCalculationResults.length
.reduce((a, b) => a + b, 0) / printEtaCalculationResults.length || 0

const eta = Date.now() + etaLeft * 1000

Expand Down

0 comments on commit 9ebd037

Please sign in to comment.