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

stacked.php graphs don't properly stack #114

Closed
cddude229 opened this issue Jul 25, 2012 · 0 comments
Closed

stacked.php graphs don't properly stack #114

cddude229 opened this issue Jul 25, 2012 · 0 comments

Comments

@cddude229
Copy link
Contributor

In stacked.php, the graphs don't properly stack. This is caused by off by one errors. What happens is "item1" and "item2" both use item1's value, and then "item3" uses item2's value. This is the diff of my fix:

74c74
< $c = 1;

---
> $c = 2;
77c77
<     $cx = $c/(1+count($hosts));

---
>     $cx = ($c-1)/(1+count($hosts));
87c87
< $c = 1;

---
> $c = 2;

I don't have the time to fork and submit a pull request unfortunately, sorry.

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

No branches or pull requests

1 participant