local changes

main
Keegan 2 years ago
parent 9d55e41bf9
commit 9eae80076d

@ -26,7 +26,7 @@ func main() {
w := flag.CommandLine.Output() w := flag.CommandLine.Output()
fmt.Fprintf(w, "Usage: %s port \n",os.Args[0]) fmt.Fprintf(w, "Usage: %s port \n",os.Args[0])
} }
iptr := flag.String("i","192.1.168.136","ip address of server") iptr := flag.String("i","192.168.100.2","ip address of server")
flag.Parse() flag.Parse()
if flag.NArg() != 1 { if flag.NArg() != 1 {
flag.Usage() flag.Usage()

Binary file not shown.

Binary file not shown.

@ -24,7 +24,7 @@ func main() {
w := flag.CommandLine.Output() w := flag.CommandLine.Output()
fmt.Fprintf(w,"Usage: %s port \n", os.Args[0]) fmt.Fprintf(w,"Usage: %s port \n", os.Args[0])
} }
iptr := flag.String("i","192.1.168.136","ip address of listener") iptr := flag.String("i","192.168.100.2","ip address of listener")
flag.Parse() flag.Parse()
if flag.NArg() != 1 { if flag.NArg() != 1 {
flag.Usage() flag.Usage()

@ -70,11 +70,12 @@ func (t *TUI) Monitor() {
select { select {
case reactor := <-t.SelectedReactor: case reactor := <-t.SelectedReactor:
// reactor has been selected in tui, grabbing devs // reactor has been selected in tui, grabbing devs
fmt.Printf("ReactorSelected %v\n",reactor)
t.App.QueueUpdateDraw(func() { t.App.QueueUpdateDraw(func() {
t.UpdateDevices(reactor) t.UpdateDevices(reactor)
}) })
case device : <-t.SelectedDevice: case device : <-t.SelectedDevice:
// TODO fmt.Println("DeviceSelected")
case <-timer: case <-timer:
// time to ping for status // time to ping for status
t.App.QueueUpdateDraw(func() { t.App.QueueUpdateDraw(func() {

Loading…
Cancel
Save