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

Refactor vnstat #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AllanKlaus
Copy link

  • Motivation
    The function getVnstatData is very complex. I created a function generateGraph that perform the same of 4 foreachs on that function getVnstatData.

  • Issue: #14

@alexandermarston
Copy link
Owner

I'm getting the following error:

PHP Fatal error: Cannot pass parameter 4 by reference in /var/www/vnstat/vnstat.php on line 119

- Motivation
The function getVnstatData is very complex. I created a function
generateGraph that perform the same of 4 foreachs on that function
getVnstatData.
@AllanKlaus
Copy link
Author

I updated it. Maybe could be another way to do it and i'm not seeing it now.

I added a var $top10Graph and after I do a unset to remove it

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.

2 participants