Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed int64 values to float64 #4

Merged
merged 2 commits into from
Jul 5, 2017
Merged

Conversation

dougbishop
Copy link
Contributor

Seems the latest version of the unifi api is returning float values now, and not integers. Tested with the stable RC of 5.5.9.

devices.go Outdated
@@ -214,7 +214,7 @@ type device struct {
// TODO(mdlayher): give all fields appropriate names and data types.
ID string `json:"_id"`
Adopted bool `json:"adopted"`
Bytes int64 `json:"bytes"`
Bytes float64 `json:"bytes"`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this file needs a go fmt.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, sorry for the delay.

@mdlayher
Copy link
Owner

mdlayher commented Jul 5, 2017

LGTM

@mdlayher mdlayher merged commit dbb64f4 into mdlayher:master Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants