Permalink
Browse files

Show the network each network device is connected to in the status page

  • Loading branch information...
1 parent ee3fa4a commit 77d33dad21901f142026647dea2b1d59e3a25cd3 @lattera committed Feb 16, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 classes/Jail.php
View
@@ -118,7 +118,7 @@ public function NetworkStatus() {
$status = "";
foreach ($this->network as $n) {
- $status .= (strlen($status) ? ", " : "") . $n->device . " { ";
+ $status .= (strlen($status) ? ", " : "") . "{$n->bridge->name}[{$n->device} { ";
$i= 0;
if ($n->is_span) {
$i++;
@@ -137,7 +137,7 @@ public function NetworkStatus() {
$status .= ($n->IsOnline()) ? " (online)" : " (offline)";
- $status .= " }";
+ $status .= " }]";
}
return $status;

0 comments on commit 77d33da

Please sign in to comment.