mirror of
https://github.com/hhftechnology/vps-monitor.git
synced 2026-04-28 03:29:55 +00:00
Update command.go
This commit is contained in:
parent
6a7a393d7f
commit
c42846cc89
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ func (h *commandHandler) buildStatusMessage() string {
|
||||||
running++
|
running++
|
||||||
|
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func(hName string, c models.Container) {
|
go func(hName string, c models.ContainerInfo) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
stats, err := dockerClient.GetContainerStatsOnce(ctx, hName, c.ID)
|
stats, err := dockerClient.GetContainerStatsOnce(ctx, hName, c.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue