summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-23 21:19:57 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-23 21:19:57 (GMT)
commit52f05d3ff1231c2ab4cf4034d0ea2279eb7448c5 (patch)
tree594d4b1f5b7117923d6ac7e4215a3d9948322ea7 /src
parent64f510e387b22e5f9bd02a60ba5f205830dc5ced (diff)
fix output of telnet state command (last changed...)
Diffstat (limited to 'src')
-rw-r--r--src/rhctl/telnet.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rhctl/telnet.go b/src/rhctl/telnet.go
index 9d41802..f872c79 100644
--- a/src/rhctl/telnet.go
+++ b/src/rhctl/telnet.go
@@ -74,8 +74,8 @@ func telnetCmdState(c *telgo.Client, args []string, ctrl *SwitchControl) bool {
}
}
c.Sayln(" gpi: %s (last changed: %v ago)", genStateString(s.Switch.GPI[:]), time.Since(s.Switch.GPIChanged))
- c.Sayln(" relay: %s (last changed: %v ago)", genStateString(s.Switch.Relay[:]), time.Since(s.Switch.GPIChanged))
- c.Sayln(" oc: %s (last changed: %v ago)", genStateString(s.Switch.OC[:]), time.Since(s.Switch.GPIChanged))
+ c.Sayln(" relay: %s (last changed: %v ago)", genStateString(s.Switch.Relay[:]), time.Since(s.Switch.RelayChanged))
+ c.Sayln(" oc: %s (last changed: %v ago)", genStateString(s.Switch.OC[:]), time.Since(s.Switch.OCChanged))
c.Sayln("Server:")
var names []string