mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
fix linting issue
Signed-off-by: Dominik Menke <dom@digineo.de>
This commit is contained in:
parent
f70209cf15
commit
33e863ac6c
@ -96,16 +96,16 @@ func collectTop(containers []api.ContainerProcSummary) (topHeader, []topEntries)
|
||||
|
||||
// ensure CMD is the right-most column
|
||||
if pos, ok := header["CMD"]; ok {
|
||||
max := pos
|
||||
maxPos := pos
|
||||
for h, i := range header {
|
||||
if i > max {
|
||||
max = i
|
||||
if i > maxPos {
|
||||
maxPos = i
|
||||
}
|
||||
if i > pos {
|
||||
header[h] = i - 1
|
||||
}
|
||||
}
|
||||
header["CMD"] = max
|
||||
header["CMD"] = maxPos
|
||||
}
|
||||
|
||||
return header, entries
|
||||
|
Loading…
x
Reference in New Issue
Block a user