X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4cd89bd1767bece226c412ae7c9ea37669e8706b..74fec3cd8284eae4829dad2c287588d52c621c4b:/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 d0db8673f1..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 %>