mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
truncate id in compact widget
This commit is contained in:
parent
9aa104fbc6
commit
6fe6e7c316
@ -35,6 +35,9 @@ func NewCIDCol() CompactCol {
|
|||||||
|
|
||||||
func (w *CIDCol) SetMeta(m models.Meta) {
|
func (w *CIDCol) SetMeta(m models.Meta) {
|
||||||
w.Text = m.Get("id")
|
w.Text = m.Get("id")
|
||||||
|
if len(w.Text) > 12 {
|
||||||
|
w.Text = w.Text[:12]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type NetCol struct {
|
type NetCol struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user