Convert UAP.uptime to FlexInt also.
This commit is contained in:
		
							parent
							
								
									bd98300015
								
							
						
					
					
						commit
						cedb3054e6
					
				|  | @ -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, | ||||
|  |  | |||
|  | @ -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"` | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue