mirror of
https://github.com/taigrr/wtf
synced 2026-03-22 20:32:18 -07:00
An experimental attempt to kill the zombie processes
This commit is contained in:
committed by
Chris Cummer
parent
202d5ca95e
commit
62502c24d0
@@ -1,7 +1,7 @@
|
||||
package opsgenie
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
//"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/rivo/tview"
|
||||
@@ -31,11 +31,13 @@ func NewWidget() *Widget {
|
||||
/* -------------------- Exported Functions -------------------- */
|
||||
|
||||
func (widget *Widget) Refresh() {
|
||||
//data := Fetch()
|
||||
|
||||
widget.View.SetTitle(" OpsGenie ")
|
||||
widget.RefreshedAt = time.Now()
|
||||
|
||||
widget.View.Clear()
|
||||
fmt.Fprintf(widget.View, "%s", "opsgenie")
|
||||
//fmt.Fprintf(widget.View, "%s", widget.contentFrom(data))
|
||||
}
|
||||
|
||||
/* -------------------- Unexported Functions -------------------- */
|
||||
@@ -49,3 +51,7 @@ func (widget *Widget) addView() {
|
||||
|
||||
widget.View = view
|
||||
}
|
||||
|
||||
func (widget *Widget) contentFrom(data string) string {
|
||||
return data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user