[llvm-commits] [LNT] r165448 - /lnt/trunk/lnt/server/ui/views.py

Daniel Dunbar daniel at zuster.org
Mon Oct 8 16:02:53 PDT 2012


Author: ddunbar
Date: Mon Oct  8 18:02:52 2012
New Revision: 165448

URL: http://llvm.org/viewvc/llvm-project?rev=165448&view=rev
Log:
v4_graph: Get rid of the "day axis" support, we always have revisions these days.

Modified:
    lnt/trunk/lnt/server/ui/views.py

Modified: lnt/trunk/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/views.py?rev=165448&r1=165447&r2=165448&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Mon Oct  8 18:02:52 2012
@@ -447,7 +447,6 @@
     revision_range = None
     num_points = 0
     num_plots = len(graph_tests)
-    use_day_axis = None
     for i,(test,field) in enumerate(graph_tests):
         # Determine the base plot color.
         col = list(util.makeDarkColor(float(i) / num_plots))
@@ -486,30 +485,6 @@
                               for v,r in q).items()
         data.sort()
 
-        # Infer whether or not we should use a day axis. This is a total hack to
-        # try and get graphs of machines which report in the %04Y%02M%02D format
-        # to look readable.
-        #
-        # We only do this detection for the first test.
-        if use_day_axis is None:
-            if data:
-                use_day_axis = (20000000 <= data[0][0] < 20990000)
-            else:
-                use_day_axis = False
-
-        # If we are using a day axis, convert the keys into seconds since the
-        # epoch.
-        if use_day_axis:
-            def convert((x,y)):
-                year = x//10000
-                month = (x//100) % 100
-                day = x % 100
-                seconds = datetime.datetime
-                timestamp = time.mktime((year, month, day,
-                                         0, 0, 0, 0, 0, 0))
-                return (timestamp,y)
-            data = map(convert, data)
-
         # Compute the graph points.
         errorbar_data = []
         points_data = []
@@ -676,8 +651,7 @@
                            neighboring_runs=neighboring_runs,
                            revision_range=revision_range,
                            graph_plots=graph_plots,
-                           overview_plots=overview_plots, legend=legend,
-                           use_day_axis=use_day_axis)
+                           overview_plots=overview_plots, legend=legend)
 
 @v4_route("/global_status")
 def v4_global_status():





More information about the llvm-commits mailing list