mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
fix byte format for compact view (short)
This commit is contained in:
@@ -38,7 +38,7 @@ func NewMemCol() CompactCol {
|
||||
|
||||
func (w *MemCol) SetMetrics(m models.Metrics) {
|
||||
w.BarColor = ui.ThemeAttr("gauge.bar.bg")
|
||||
w.Label = fmt.Sprintf("%s / %s", cwidgets.ByteFormat(m.MemUsage), cwidgets.ByteFormat(m.MemLimit))
|
||||
w.Label = fmt.Sprintf("%s / %s", cwidgets.ByteFormat64Short(m.MemUsage), cwidgets.ByteFormat64Short(m.MemLimit))
|
||||
w.Percent = m.MemPercent
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user