From d451eabbcbb8d5885fb30c2c341d93204a008596 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Wed, 24 May 2017 13:51:47 -0300 Subject: [PATCH] 11501: Simplified helper method call. Changed wording of run time description. --- apps/workbench/app/models/proxy_work_unit.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/workbench/app/models/proxy_work_unit.rb b/apps/workbench/app/models/proxy_work_unit.rb index 0bfc753209..8d1c1e30ec 100644 --- a/apps/workbench/app/models/proxy_work_unit.rb +++ b/apps/workbench/app/models/proxy_work_unit.rb @@ -233,7 +233,7 @@ class ProxyWorkUnit < WorkUnit end def runningtime - ApplicationController.helpers.determine_wallclock_runtime(if children.any? then runtime_contributors else [self] end) + ApplicationController.helpers.determine_wallclock_runtime runtime_contributors end def show_runtime @@ -278,13 +278,7 @@ class ProxyWorkUnit < WorkUnit resp << "

" if state_label - resp << "It " - if state_label == 'Running' - resp << "has run" - else - resp << "ran" - end - resp << " for " + resp << "It has runtime of " cpu_time = cputime -- 2.30.2