mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
replace += with ++
This commit is contained in:
@@ -4,6 +4,7 @@ package compact
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
ui "github.com/gizak/termui"
|
ui "github.com/gizak/termui"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -28,7 +29,7 @@ func calcWidth(width int) int {
|
|||||||
for _, w := range colWidths {
|
for _, w := range colWidths {
|
||||||
width -= w
|
width -= w
|
||||||
if w == 0 {
|
if w == 0 {
|
||||||
staticCols += 1
|
staticCols++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (width - spacing) / staticCols
|
return (width - spacing) / staticCols
|
||||||
|
|||||||
Reference in New Issue
Block a user