mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-05 09:53:21 +08:00
Show cpu and memory stats of every node
This commit is contained in:
@@ -132,6 +132,12 @@
|
||||
$scope.connected = true;
|
||||
});
|
||||
|
||||
socket.on('instance stats', function(name, mem, cpu) {
|
||||
$scope.idx[name].mem = mem;
|
||||
$scope.idx[name].cpu = cpu;
|
||||
$scope.$apply();
|
||||
});
|
||||
|
||||
$scope.socket = socket;
|
||||
|
||||
var i = response.data;
|
||||
|
Reference in New Issue
Block a user