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
50d1c29d57
commit
ca5d40b7cc
@ -35,6 +35,9 @@ func NewCIDCol() CompactCol {
|
||||
|
||||
func (w *CIDCol) SetMeta(m models.Meta) {
|
||||
w.Text = m.Get("id")
|
||||
if len(w.Text) > 12 {
|
||||
w.Text = w.Text[:12]
|
||||
}
|
||||
}
|
||||
|
||||
type NetCol struct {
|
||||
|
Loading…
Reference in New Issue
Block a user