diff --git a/config.yml b/config.yml index fc36790b..3ad7eeac 100644 --- a/config.yml +++ b/config.yml @@ -52,7 +52,7 @@ wtf: newrelic: applicationId: 10549735 enabled: true - deployCount: 5 + deployCount: 7 position: top: 4 left: 2 diff --git a/newrelic/widget.go b/newrelic/widget.go index e5dfde6e..d8091e5c 100644 --- a/newrelic/widget.go +++ b/newrelic/widget.go @@ -66,7 +66,8 @@ func (widget *Widget) contentFrom(deploys []nr.ApplicationDeployment) string { for _, deploy := range deploys { if (deploy.Revision != "") && wtf.Exclude(revisions, deploy.Revision) { str = str + fmt.Sprintf( - " [green]%s[white] %-6s %s\n", + " %03d [green]%s[white] %-6s %s\n", + deploy.ID%1000, deploy.Revision[0:8], deploy.Timestamp.Format("Jan 2"), wtf.NameFromEmail(deploy.User), diff --git a/wtf.go b/wtf.go index 16d7c4bb..5e3140db 100644 --- a/wtf.go +++ b/wtf.go @@ -1,8 +1,6 @@ package main import ( - //"fmt" - //"os" "time" "github.com/rivo/tview"