diff --git a/app/components/swarm/swarm.html b/app/components/swarm/swarm.html index 35e3ca6af..2e09be30a 100644 --- a/app/components/swarm/swarm.html +++ b/app/components/swarm/swarm.html @@ -8,43 +8,7 @@
-
- - -
- -
-
{{ docker.Version }}
-
Swarm version
-
-
-
-
- - -
- -
-
{{ docker.ApiVersion }}
-
API version
-
-
-
-
- - -
- -
-
{{ docker.GoVersion }}
-
Go version
-
-
-
-
- -
-
+
@@ -58,34 +22,48 @@ Images {{ info.Images }} + + Swarm version + {{ docker.Version|swarmversion }} + + + Docker API version + {{ docker.ApiVersion }} + Strategy {{ swarm.Strategy }} - CPUs + Total CPU {{ info.NCPU }} - Total Memory + Total memory {{ info.MemTotal|humansize }} - Operating System + Operating system {{ info.OperatingSystem }} - Kernel Version + Kernel version {{ info.KernelVersion }} + + Go version + {{ docker.GoVersion }} +
-
+
+
+
- + @@ -97,6 +75,20 @@ + + + + diff --git a/app/components/swarm/swarmController.js b/app/components/swarm/swarmController.js index 840c6281d..eca575753 100644 --- a/app/components/swarm/swarmController.js +++ b/app/components/swarm/swarmController.js @@ -53,8 +53,8 @@ angular.module('swarm', []) node.id = info[offset + 1][1]; node.status = info[offset + 2][1]; node.containers = info[offset + 3][1]; - node.cpu = info[offset + 4][1]; - node.memory = info[offset + 5][1]; + node.cpu = info[offset + 4][1].split('/')[1]; + node.memory = info[offset + 5][1].split('/')[1]; node.labels = info[offset + 6][1]; node.version = info[offset + 8][1]; $scope.swarm.Status.push(node); diff --git a/app/shared/viewmodel.js b/app/shared/viewmodel.js index f0bf07f1e..0b2cf6150 100644 --- a/app/shared/viewmodel.js +++ b/app/shared/viewmodel.js @@ -21,18 +21,6 @@ function ContainerViewModel(data) { this.Checked = false; } -function EventViewModel(data) { - // Type, Action, Actor unavailable in Docker < 1.10 - this.Time = data.time; - if (data.Type) { - this.Type = data.Type; - this.Details = createEventDetails(data); - } else { - this.Type = data.status; - this.Details = data.from; - } -} - function createEventDetails(event) { var eventAttr = event.Actor.Attributes; var details = ''; @@ -126,3 +114,15 @@ function createEventDetails(event) { } return details; } + +function EventViewModel(data) { + // Type, Action, Actor unavailable in Docker < 1.10 + this.Time = data.time; + if (data.Type) { + this.Type = data.Type; + this.Details = createEventDetails(data); + } else { + this.Type = data.status; + this.Details = data.from; + } +}
+ + CPU + + + + + + Memory + + + + IP @@ -123,6 +115,8 @@
{{ node.name }}{{ node.cpu }}{{ node.memory }} {{ node.ip }} {{ node.version }} {{ node.status }}