From 611bf005aca478e054a56b24873a954be3005b51 Mon Sep 17 00:00:00 2001 From: Kyle Siefring Date: Mon, 5 Jun 2017 13:17:06 -0400 Subject: [PATCH] Use run estimates from rd_tool. --- www/src/components/Job.tsx | 3 +-- www/src/stores/Stores.ts | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/www/src/components/Job.tsx b/www/src/components/Job.tsx index ba49a29d..902c6773 100644 --- a/www/src/components/Job.tsx +++ b/www/src/components/Job.tsx @@ -84,8 +84,7 @@ export class JobComponent extends React.Component 0 ? 100 * value : 100; if (value === 0) { diff --git a/www/src/stores/Stores.ts b/www/src/stores/Stores.ts index 86471df6..96ee63fa 100644 --- a/www/src/stores/Stores.ts +++ b/www/src/stores/Stores.ts @@ -333,7 +333,8 @@ function parseBoolean(v) { export class JobProgress { constructor( public value: number, - public total: number) { + public total: number, + public eta: number ) { // ... } } @@ -352,7 +353,7 @@ export class Job { status: JobStatus = JobStatus.Unknown; date: Date; - progress: JobProgress = new JobProgress(0, 0); + progress: JobProgress = new JobProgress(0, 0, 0); selected: boolean = false; selectedName: string = ""; color: string = ""; @@ -813,6 +814,7 @@ export class AppStore { } job.progress.value = o.completed; job.progress.total = o.total; + job.progress.eta = o.eta; job.loadLog(true); job.onChange.post("updated status"); });