Skip to content

Commit

Permalink
Use OctoPrint completion over self-calculated percentage (UnchartedBu…
Browse files Browse the repository at this point in the history
  • Loading branch information
UnchartedBull authored and kantlivelong committed May 5, 2021
1 parent e2792a5 commit df64c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/job.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class JobService {
thumbnail: await this.fileService.getThumbnail(
'/' + data.job.file.origin + '/' + data.job.file.path,
),
progress: Math.round((data.progress.filepos / data.job.file.size) * 100),
progress: Math.round(data.progress.completion),
...(data.job.filament !== null
? {
filamentAmount: this.service.convertFilamentLengthToWeight(
Expand Down

0 comments on commit df64c67

Please sign in to comment.