X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6b2005a2fa3e7c040f8db222010fa870f87336bf..1d77dec0f7bc1cca34d52288bd39ecd0a79be250:/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 03bb518301..aad7d7bf2a 100644 --- a/apps/workbench/app/views/work_units/_show_child.html.erb +++ b/apps/workbench/app/views/work_units/_show_child.html.erb @@ -18,10 +18,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 %>