mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
replace += with ++
This commit is contained in:
parent
4d247f5272
commit
93556a1754
@ -4,6 +4,7 @@ package compact
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
ui "github.com/gizak/termui"
|
||||
)
|
||||
|
||||
@ -28,7 +29,7 @@ func calcWidth(width int) int {
|
||||
for _, w := range colWidths {
|
||||
width -= w
|
||||
if w == 0 {
|
||||
staticCols += 1
|
||||
staticCols++
|
||||
}
|
||||
}
|
||||
return (width - spacing) / staticCols
|
||||
|
Loading…
Reference in New Issue
Block a user