cleaning up
parent
03f40b9c47
commit
e89e59d8a8
|
|
@ -16,6 +16,7 @@ type ClusterInfoListener interface {
|
|||
ClusterInfoUpdated(ClusterMeta)
|
||||
}
|
||||
|
||||
// NA indicates data is missing at this time.
|
||||
const NA = "n/a"
|
||||
|
||||
// ClusterMeta represents cluster meta data.
|
||||
|
|
|
|||
|
|
@ -130,6 +130,7 @@ func (s *StatusIndicator) setText(msg string) {
|
|||
|
||||
// Helpers...
|
||||
|
||||
// AsPercDelta represents a percentage with a delta indicator.
|
||||
func AsPercDelta(ov, nv float64) string {
|
||||
prev, cur := render.AsPerc(ov), render.AsPerc(nv)
|
||||
if cur == "0" {
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ func (c *ClusterInfo) infoCell(t string) *tview.TableCell {
|
|||
return cell
|
||||
}
|
||||
|
||||
// ClusterInfoChanged notifies the cluster meta was updated.
|
||||
// ClusterInfoUpdated notifies the cluster meta was updated.
|
||||
func (c *ClusterInfo) ClusterInfoUpdated(data model.ClusterMeta) {
|
||||
c.app.QueueUpdateDraw(func() {
|
||||
var row int
|
||||
|
|
|
|||
Loading…
Reference in New Issue