Skip to content

Refactor vnstat - #22

Open
AllanKlaus wants to merge 1 commit into
alexandermarston:masterfrom
AllanKlaus:refactor-vnstat
Open

Refactor vnstat#22
AllanKlaus wants to merge 1 commit into
alexandermarston:masterfrom
AllanKlaus:refactor-vnstat

Conversation

@AllanKlaus

Copy link
Copy Markdown
  • 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
Copy Markdown
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
Copy Markdown
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