X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f8b2e8039c96c6ad101f83012d7abf1c45b12ab2..85c625c40ad873d0efac33f8a63c1ee256185e36:/apps/workbench/app/views/work_units/_show_child.html.erb diff --git a/apps/workbench/app/views/work_units/_show_child.html.erb b/apps/workbench/app/views/work_units/_show_child.html.erb index b9010a1b00..53f3e43da2 100644 --- a/apps/workbench/app/views/work_units/_show_child.html.erb +++ b/apps/workbench/app/views/work_units/_show_child.html.erb @@ -1,10 +1,14 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> +
@@ -18,10 +22,11 @@ <% else %> <% walltime = current_obj.walltime %> <% cputime = current_obj.cputime %> + <% runningtime = current_obj.runningtime %>
<% if walltime and cputime %> - <%= render_runtime(walltime, false) %> - <% if cputime > 0 %> / <%= render_runtime(cputime, false) %> (<%= (cputime/walltime).round(1) %>⨯)<% end %> + <%= render_runtime([walltime, runningtime].max, false) %> + <% if cputime > 0 %> / <%= render_runtime(cputime, false) %> (<%= (cputime/runningtime).round(1) %>⨯)<% end %> <% end %>