We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
In the Tree management page, the header/footer where it shows "All # of Trees" does not show the correct count.
Steps to reproduce the behavior:
I would expect to see a count of the number of trees in the list on this screen.
This screenshot is from a fresh install of cacti 1.2.14. The first thing I did was went to the trees screen and added a new tree
In the file trees.php on line 1984, the following query appears to generate that number based off of the graph_tree_items table and a distinct count of how many trees are actively being used.
$total_rows = db_fetch_cell("SELECT COUNT(DISTINCT(ti.graph_tree_id))
FROM graph_tree AS t
LEFT JOIN graph_tree_items AS ti
Would it be better to count how many trees are defined?
SELECT COUNT(DISTINCT(id)) from graph_tree;
The text was updated successfully, but these errors were encountered:
Fixing Issue #3850
Trees management screen not reporting correct number of trees
Sorry, something went wrong.
Thanks! Looks good now.
No branches or pull requests