Convert UAP.uptime to FlexInt also.

This commit is contained in:
DN2 2019-01-11 01:38:54 -08:00
parent f4e1debebd
commit b4e4e2d851
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ func (u UAP) Points() ([]*influx.Point, error) {
"rx_bytes-d": u.RxBytesD,
"tx_bytes": u.TxBytes,
"tx_bytes-d": u.TxBytesD,
"uptime": u.Uptime,
"uptime": u.Uptime.Number,
"considered_lost_at": u.ConsideredLostAt,
"next_heartbeat_at": u.NextHeartbeatAt,
"scanning": u.Scanning,

View File

@ -306,7 +306,7 @@ type UAP struct {
UplinkRemotePort int `json:"uplink_remote_port"`
} `json:"uplink"`
UplinkTable []interface{} `json:"uplink_table"`
Uptime float64 `json:"uptime"`
Uptime FlexInt `json:"uptime"`
UserNumSta int `json:"user-num_sta"`
VapTable []struct {
ApMac string `json:"ap_mac"`