summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-11-03 21:55:54 (GMT)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-11-03 21:55:54 (GMT)
commit1149cdf560694a2f038d569662a67b3e4a519b64 (patch)
tree312adf57097930a299ba99441c5531eeff5c4b04
parent55469dc6039707a3daa0aa02ad32d529ce2e7061 (diff)
downloadbuildroot-test-1149cdf560694a2f038d569662a67b3e4a519b64.tar.gz
buildroot-test-1149cdf560694a2f038d569662a67b3e4a519b64.tar.bz2
{stats,graph}.php: only show results for the master branch
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-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) {