[ARVADOS] created: 1.3.0-784-g54ac1a603

Git user git at public.curoverse.com
Mon Apr 22 20:07:57 UTC 2019


        at  54ac1a603639ec2e97c5bf0461494b964ff35d1a (commit)


commit 54ac1a603639ec2e97c5bf0461494b964ff35d1a
Author: Tom Morris <tfmorris at veritasgenetics.com>
Date:   Mon Mar 18 18:48:33 2019 -0400

    Fix elapsed time calculation.
    
    refs #14627
    
    Arvados-DCO-1.1-Signed-off-by: Tom Morris <tfmorris at veritasgenetics.com>

diff --git a/tools/crunchstat-summary/crunchstat_summary/summarizer.py b/tools/crunchstat-summary/crunchstat_summary/summarizer.py
index 6d567e68d..884f16b4a 100644
--- a/tools/crunchstat-summary/crunchstat_summary/summarizer.py
+++ b/tools/crunchstat-summary/crunchstat_summary/summarizer.py
@@ -167,9 +167,9 @@ class Summarizer(object):
             if task.finishtime is None or timestamp > task.finishtime:
                 task.finishtime = timestamp
 
-            if self.starttime is None or timestamp < task.starttime:
+            if self.starttime is None or timestamp < self.starttime:
                 self.starttime = timestamp
-            if self.finishtime is None or timestamp < task.finishtime:
+            if self.finishtime is None or timestamp > self.finishtime:
                 self.finishtime = timestamp
 
             if (not self.detected_crunch1) and task.starttime is not None and task.finishtime is not None:

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list