mirror of https://github.com/bcicen/ctop.git
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) {
|
||||
w.Text = m.Get("id")
|
||||
if len(w.Text) > 12 {
|
||||
w.Text = w.Text[:12]
|
||||
}
|
||||
}
|
||||
|
||||
type NetCol struct {
|
||||
|
|
Loading…
Reference in New Issue