diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-16 14:03:04 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-16 14:03:04 +0200 |
| commit | 3504248ae4db51380413c45699e4453efb314561 (patch) | |
| tree | 07a4e906ae37e0967c3ecb1b53732537badcda0a /app/client/dashboard/dashboardHeader.component.js | |
| parent | 8955da42bd3b66543ecea80f00ec979a6140f5bc (diff) | |
load folders into dashboard...
Diffstat (limited to 'app/client/dashboard/dashboardHeader.component.js')
| -rw-r--r-- | app/client/dashboard/dashboardHeader.component.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/client/dashboard/dashboardHeader.component.js b/app/client/dashboard/dashboardHeader.component.js index d27a324..9acee35 100644 --- a/app/client/dashboard/dashboardHeader.component.js +++ b/app/client/dashboard/dashboardHeader.component.js @@ -28,7 +28,9 @@ class DashboardHeader extends Component { return null } const task = gpu.task - const eta = ((task.epochs - (task.epoch || 0)) * 180 / 60) + " minutes" + const eta = task.epoch + ? ((task.epochs - (task.epoch || 0)) * 1000 / 60) + " minutes" + : null let activityPhrase, liveMessage if (task.activity === 'live') { return ( @@ -41,7 +43,7 @@ class DashboardHeader extends Component { return ( <div> Currently {util.gerund(task.activity)} {task.module} on {task.dataset}<br/> - Epoch: {task.epoch} / {task.epochs}, ETA {eta}<br/> + {eta && <span>Epoch: {task.epoch} / {task.epochs}, ETA {eta}<br/></span>} <br /> Want to play live? <button>Pause at the end of this epoch</button> </div> |
