cleaning up

mine
derailed 2020-01-24 22:16:28 -07:00
parent 03f40b9c47
commit e89e59d8a8
3 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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" {

View File

@ -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