Convert UAP.uptime to FlexInt also.
This commit is contained in:
parent
f4e1debebd
commit
b4e4e2d851
|
|
@ -62,7 +62,7 @@ func (u UAP) Points() ([]*influx.Point, error) {
|
||||||
"rx_bytes-d": u.RxBytesD,
|
"rx_bytes-d": u.RxBytesD,
|
||||||
"tx_bytes": u.TxBytes,
|
"tx_bytes": u.TxBytes,
|
||||||
"tx_bytes-d": u.TxBytesD,
|
"tx_bytes-d": u.TxBytesD,
|
||||||
"uptime": u.Uptime,
|
"uptime": u.Uptime.Number,
|
||||||
"considered_lost_at": u.ConsideredLostAt,
|
"considered_lost_at": u.ConsideredLostAt,
|
||||||
"next_heartbeat_at": u.NextHeartbeatAt,
|
"next_heartbeat_at": u.NextHeartbeatAt,
|
||||||
"scanning": u.Scanning,
|
"scanning": u.Scanning,
|
||||||
|
|
|
||||||
|
|
@ -306,7 +306,7 @@ type UAP struct {
|
||||||
UplinkRemotePort int `json:"uplink_remote_port"`
|
UplinkRemotePort int `json:"uplink_remote_port"`
|
||||||
} `json:"uplink"`
|
} `json:"uplink"`
|
||||||
UplinkTable []interface{} `json:"uplink_table"`
|
UplinkTable []interface{} `json:"uplink_table"`
|
||||||
Uptime float64 `json:"uptime"`
|
Uptime FlexInt `json:"uptime"`
|
||||||
UserNumSta int `json:"user-num_sta"`
|
UserNumSta int `json:"user-num_sta"`
|
||||||
VapTable []struct {
|
VapTable []struct {
|
||||||
ApMac string `json:"ap_mac"`
|
ApMac string `json:"ap_mac"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue