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

Fixed while loop when graph is not created. #9

Merged
merged 1 commit into from
Feb 5, 2016

Conversation

micke2k
Copy link
Contributor

@micke2k micke2k commented Jan 30, 2016

When creating new graphs graph_json throws an error and spikes CPU.

[Sat Jan 30 00:06:27.947764 2016] [:error] [pid 44971] [client :64833] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/cacti/graph_json.php on line 143, referer: http:///cacti/graph_view.php

This is until the graph has been created and can be found.

Changed it to check for a RRD and if not found set a placeholder image. Code doesn't loop anymore.

When creating new graphs graph_json throws an error and spikes CPU.

[Sat Jan 30 00:06:27.947764 2016] [:error] [pid 44971] [client :64833] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/html/cacti/graph_json.php on line 143, referer: http:///cacti/graph_view.php

This is until the graph has been created and can be found.

Changed it to check for a RRD and if not found set a placeholder image. Code doesn't loop anymore.
@SjonHortensius
Copy link
Contributor

I can confirm this issue and this PR fixes it.

browniebraun added a commit that referenced this pull request Feb 5, 2016
Fixed while loop when graph is not created.
@browniebraun browniebraun merged commit 1a3812c into Cacti:develop Feb 5, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants