]> 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 05fee3ef8002c65473a42986792d54af0899019a..3642a1dc0e152178f5d712fecf56d3a32e662e92 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) as N from bench group by mark order by N desc)"
+"Max N@@@select COUNT(DISTINCT test) as MAX from bench group by mark order by MAX desc LIMIT 0,1;"
   . "###" .
   "Number of compiled tests@@@select mark, COUNT(DISTINCT test) as N from bench group by mark order by mark desc***"
 );
@@ -57,7 +57,7 @@ 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;", $q);
+    $q1 = str_replace(urlencode("***"), " LIMIT 0,$l", $q);
     echo "<a href=\"showquery.php?query=$q1;\">" . 
           minus1_to_all($l) . "</a>&nbsp;";
   }