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

Failed Travis build #37

Open
si14 opened this issue Jul 5, 2013 · 2 comments
Open

Failed Travis build #37

si14 opened this issue Jul 5, 2013 · 2 comments
Labels

Comments

@si14
Copy link
Member

si14 commented Jul 5, 2013

Seems like Proper found an error:

https://travis-ci.org/band115/ecirca/jobs/8777848

@si14
Copy link
Member Author

si14 commented Jul 5, 2013

1> {ok, T} =  ecirca:new(4, avg, large)
{ok,{ecirca,#Ref<0.0.0.176>,<<>>,<0.48.0>,large}}
2> ecirca:push_many(T, 4, 66365157401932800).     
ok
3> ecirca:update(T, 3, 36989608025287680).     
{ok,{66365157401932800,51677382713610240}}
4> ecirca:update(T, 3, 397945711586986496).     
{ok,{51677382713610240,167100159004735680}}
5> ecirca:slice(T, 3, 3).     
{ok,[167100159004735680]}
>>> vals = [397945711586986496,36989608025287680,66365157401932800]
>>> avg = sum(vals) / 3
167100159004735658
>>> x = 167100159004735680
>>> avg - x
22

@si14
Copy link
Member Author

si14 commented Jul 5, 2013

Seems like an internal overflow of sum. Not sure what we can do with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant