1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(home): add node count to endpoint list. (#4793)

* feat(home): add node count to endpoint list.

* feat(home): add node count beside docker version
This commit is contained in:
aravind-korada 2021-03-04 21:12:47 +05:30 committed by GitHub
parent 36fcbb9e18
commit 52d4296c08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -118,6 +118,7 @@ func snapshotNodes(snapshot *portainer.DockerSnapshot, cli *client.Client) error
}
snapshot.TotalCPU = int(nanoCpus / 1e9)
snapshot.TotalMemory = totalMem
snapshot.NodeCount = len(nodes)
return nil
}