[llvm-commits] [LNT] r165659 - /lnt/trunk/lnt/lnttool/main.py

Daniel Dunbar daniel at zuster.org
Wed Oct 10 14:31:20 PDT 2012


Author: ddunbar
Date: Wed Oct 10 16:31:20 2012
New Revision: 165659

URL: http://llvm.org/viewvc/llvm-project?rev=165659&view=rev
Log:
dailyreport: Fix a bug in send-daily-report.
 - This caused us to not include whatever the latest run was that we were using
   to derive the report time to use.

Modified:
    lnt/trunk/lnt/lnttool/main.py

Modified: lnt/trunk/lnt/lnttool/main.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/lnttool/main.py?rev=165659&r1=165658&r2=165659&view=diff
==============================================================================
--- lnt/trunk/lnt/lnttool/main.py (original)
+++ lnt/trunk/lnt/lnttool/main.py Wed Oct 10 16:31:20 2012
@@ -297,9 +297,10 @@
     latest = ts.query(ts.Run).\
         order_by(ts.Run.start_time.desc()).limit(1).first()
 
-    # If we found a run, use it's start time.
+    # If we found a run, use it's start time (rounded up to the next hour, so we
+    # make sure it gets included).
     if latest:
-        date = latest.start_time
+        date = latest.start_time + datetime.timedelta(hours=1)
     else:
         # Otherwise, just use now.
         date = datetime.datetime.now()





More information about the llvm-commits mailing list