summaryrefslogtreecommitdiffstats
path: root/tools/infra-dashboard/pages/slaves.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/infra-dashboard/pages/slaves.php')
-rw-r--r--tools/infra-dashboard/pages/slaves.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/infra-dashboard/pages/slaves.php b/tools/infra-dashboard/pages/slaves.php
index 4eb2add9..25fafd26 100644
--- a/tools/infra-dashboard/pages/slaves.php
+++ b/tools/infra-dashboard/pages/slaves.php
@@ -8,6 +8,7 @@
<?php
include '../utils/jenkinsAdapter.php';
+ $array = $SLAVES->xpath('computer');
echo '<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">';
echo "<thead>";
@@ -18,8 +19,7 @@
echo "</tr>";
echo "</thead>";
echo "<tbody>";
-
- foreach ($SLAVES->xpath('computer') as &$value) {
+ foreach ($array as &$value) {
$slave = $value->displayName;
$idle = $value->idle;
@@ -55,6 +55,4 @@
}
echo '</tbody>';
echo '</table>';
-
-
?>