aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/graph.php2
-rw-r--r--web/stats.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/web/graph.php b/web/graph.php
index e486f55..5e860a1 100644
--- a/web/graph.php
+++ b/web/graph.php
@@ -9,7 +9,7 @@ $myData = new pData();
$db = new db();
-$sql = "select * from (select sum(status=0) as success,sum(status=1) as failures,sum(status=2) as timeouts,count(*) as total,date(builddate) as day from results group by date(builddate) order by date(builddate) desc limit 180) as foo order by day;";
+$sql = "select * from (select sum(status=0) as success,sum(status=1) as failures,sum(status=2) as timeouts,count(*) as total,date(builddate) as day from results where branch='master' group by date(builddate) order by date(builddate) desc limit 180) as foo order by day;";
$ret = $db->query($sql);
if ($ret == FALSE) {
diff --git a/web/stats.php b/web/stats.php
index f8ad59d..31a590d 100644
--- a/web/stats.php
+++ b/web/stats.php
@@ -1,11 +1,11 @@
<?php
include("funcs.inc.php");
-bab_header("Buildroot tests statistics");
+bab_header("Buildroot <i>master</i> tests statistics");
$db = new db();
-$sql = "select sum(status=0) as success,sum(status=1) as failures,sum(status=2) as timeouts,count(*) as total,date(builddate) as day from results group by date(builddate) order by date(builddate) desc limit 30;";
+$sql = "select sum(status=0) as success,sum(status=1) as failures,sum(status=2) as timeouts,count(*) as total,date(builddate) as day from results where branch='master' group by date(builddate) order by date(builddate) desc limit 30;";
$ret = $db->query($sql);
if ($ret == FALSE) {
@@ -62,7 +62,7 @@ echo " <td>$timeoutrate%</td>\n";
echo " <td>$total</td>\n";
echo " </tr>\n";
-$sql = "select sum(status=0) as success,sum(status=1) as failures,sum(status=2) as timeouts,count(*) as total from results;";
+$sql = "select sum(status=0) as success,sum(status=1) as failures,sum(status=2) as timeouts,count(*) as total from results where branch='master';";
$ret = $db->query($sql);
if ($ret == FALSE) {