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

fijal at codespeak.net fijal at codespeak.net
Mon Jan 18 14:25:35 CET 2010


Author: fijal
Date: Mon Jan 18 14:25:35 2010
New Revision: 70683

Modified:
   pypy/build/bot2/jsplot/js/plot.js
Log:
Be robust against different starting revisions


Modified: pypy/build/bot2/jsplot/js/plot.js
==============================================================================
--- pypy/build/bot2/jsplot/js/plot.js	(original)
+++ pypy/build/bot2/jsplot/js/plot.js	Mon Jan 18 14:25:35 2010
@@ -68,7 +68,12 @@
     var elem = $("#placeholder").find("div:last");
     var attrs = attrs_for_miniature();
     var data;
-    $("#revstart")[0].value = benchresults[0][0];
+    var oldval = $("#revstart")[0].value;
+    if (!oldval || benchresults[0][0] < oldval) {
+        // only update stuff when our starting revision is smaller, so we
+        // get a minimum
+        $("#revstart")[0].value = benchresults[0][0];
+    }
     $("#revstart").change(function(event) {
         redisplay(elem, benchresults, cpython_results);
     });



More information about the Pypy-commit mailing list