From 181901d9ae18fc4024972769321a26b88a646ed2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 27 Mar 2018 11:12:20 +0200 Subject: web-scripts/build-slaves.php: display count of logged lines --- web-scripts/build-slaves.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'web-scripts') diff --git a/web-scripts/build-slaves.php b/web-scripts/build-slaves.php index 0b8ae6a..b842d79 100644 --- a/web-scripts/build-slaves.php +++ b/web-scripts/build-slaves.php @@ -6,24 +6,26 @@ die("Connection to mysql database failed: " . $conn->connect_error); } - $result = + if (!$result = $conn->query( "SELECT" . " `build_slaves`.`name`," . "`build_slaves`.`operator`," . "`package_sources`.`pkgbase`," . - "`build_slaves`.`last_connection`" . + "`build_slaves`.`last_connection`," . + "`build_slaves`.`logged_lines`" . " FROM `build_slaves`" . " LEFT JOIN `build_assignments` ON" . " `build_slaves`.`currently_building`=`build_assignments`.`id`" . " LEFT JOIN `package_sources` ON" . " `build_assignments`.`package_source`=`package_sources`.`id`" . " ORDER BY `build_slaves`.`last_connection`" - ); + )) + die($conn->error); print "\n"; if ($result->num_rows > 0) { - print "\n"; + print "\n"; while ($row = $result -> fetch_assoc()) { foreach ($row as $key => $value) { if ($value=="") { @@ -35,6 +37,7 @@ print ""; print ""; print ""; + print ""; print "\n"; } } -- cgit v1.2.3-70-g09d2
nameoperatorcurrently buildinglast connection
nameoperatorcurrently buildinglast connectionlogged lines
".$row["operator"]."".$row["pkgbase"]."".$row["last_connection"]."".$row["logged_lines"]."