From fd047a58ee6d4034c3417a3cf7e476ec1cd453d8 Mon Sep 17 00:00:00 2001 From: UnchartedBull Date: Thu, 22 Oct 2020 16:15:41 +0200 Subject: [PATCH] Use OctoPrint completion over self-calculated percentage --- src/app/job.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/job.service.ts b/src/app/job.service.ts index 8eb30682c..78a8cf81e 100644 --- a/src/app/job.service.ts +++ b/src/app/job.service.ts @@ -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(