11501: Simplified helper method call. Changed wording of run time description.
authorLucas Di Pentima <lucas@curoverse.com>
Wed, 24 May 2017 16:51:47 +0000 (13:51 -0300)
committerLucas Di Pentima <lucas@curoverse.com>
Wed, 24 May 2017 16:51:47 +0000 (13:51 -0300)
apps/workbench/app/models/proxy_work_unit.rb

index 0bfc753209666e3cd9c4ae4d12ebf76069268942..8d1c1e30ec2a9f58159af24b61bc111b6ffa6ec3 100644 (file)
@@ -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 << "<p>"
     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