[pypy-svn] r70669 - pypy/build/bot2/jsplot/js

fijal at codespeak.net fijal at codespeak.net
Sun Jan 17 23:07:20 CET 2010


Author: fijal
Date: Sun Jan 17 23:07:20 2010
New Revision: 70669

Modified:
   pypy/build/bot2/jsplot/js/plot.js
Log:
Repeat the "xxx faster" string at the bottom


Modified: pypy/build/bot2/jsplot/js/plot.js
==============================================================================
--- pypy/build/bot2/jsplot/js/plot.js	(original)
+++ pypy/build/bot2/jsplot/js/plot.js	Sun Jan 17 23:07:20 2010
@@ -63,7 +63,7 @@
     var capt = benchname + " " + lasttime;
     $("#placeholder").find("tr:last").append("<td><p class='smallcaption'>" + capt + "</p><a href='#down' id='goto_" + benchname + "'><div class='miniplot'></div></a></td>");
     $("#goto_" + benchname).click(function(e) {
-        display_large(benchname, benchresults, cpython_results);
+        display_large(benchname, benchresults, cpython_results, lasttime);
     });
     var elem = $("#placeholder").find("div:last");
     var attrs = attrs_for_miniature();
@@ -77,15 +77,15 @@
     $.plot(elem, data, attrs);
 }
 
-function display_large(benchname, benchresults, cpython_results)
+function display_large(benchname, benchresults, cpython_results, lasttime)
 {
-    $("#large_caption").html(benchname);
+    $("#large_caption").html(benchname + " " + lasttime);
     var attrs = common_attrs();
     attrs.xaxis.min = $("#revstart")[0].value;
     $.plot($("#large_graph"), get_plot_input(benchresults, cpython_results),
           attrs);
     large_displayed = true;
-    large_data = [benchname, benchresults, cpython_results];
+    large_data = [benchname, benchresults, cpython_results, lasttime];
 }
 
 function redisplay(elem, benchresults, cpython_results)
@@ -94,7 +94,7 @@
     attrs.xaxis.min = $("#revstart")[0].value;
     $.plot(elem, [benchresults, cpython_results], attrs);
     if (large_displayed) {
-        display_large(large_data[0], large_data[1], large_data[2]);
+        display_large(large_data[0], large_data[1], large_data[2], large_data[3]);
     }
 }
 



More information about the Pypy-commit mailing list