]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/scripts/public_html/bench.php
fix
[helm.git] / helm / matita / scripts / public_html / bench.php
index 144597b1a9213fb2de7f385d9dcf87ba0232d19a..f1b424bb096f4442206c4983ed2875642b57644a 100644 (file)
@@ -42,7 +42,7 @@ $query_csc_opt = urlencode("Performances (opt and GC) per mark@@@select mark, SE
 
 $query_total = urlencode(
   
-"Max N@@@select COUNT(DISTINCT test) from bench group by mark"
+"Max N@@@select MAX(col) from tab where col = (select COUNT(DISTINCT test)) from bench group by mark order by mark desc)"
   . "###" .
   "Number of compiled tests@@@select mark, COUNT(DISTINCT test) as N from bench group by mark order by mark desc"
 );
@@ -57,8 +57,8 @@ function minus1_to_all($s){
 function links_of($name,$q,$limits){
   echo "<li>$name&nbsp;";
   foreach($limits as $l) {
-    $q1 = str_replace(urlencode("###"), " LIMIT 0,$l;" . urlencode("###"), $q);
-    echo "<a href=\"showquery.php?query=$q1 LIMIT 0,$l; \">" . 
+    $q1 = str_replace(urlencode("***"), " LIMIT 0,$l;", $q);
+    echo "<a href=\"showquery.php?query=$q1;\">" . 
           minus1_to_all($l) . "</a>&nbsp;";
   }
   echo "</li>";