Red Hat Bugzilla – Bug 536523
On the Metric Data subtab, for data that is not even being collected, shows zeros instead of n/a or blank
Last modified: 2014-11-09 17:50:29 EST
<joseph> jweiss, probably because avg(col) in sql will always give a real result back
<jweiss> joseph: even if there are no rows?
<jweiss> seems like it should give NaN or something
I think maybe update update the code+sql to check for zero rows first, and then change the display to NaN or or n/a or some non-number.
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-864
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.
new = Tracking + FutureFeature + SubBug
making sure we're not missing any bugs in rhq_triage
can't determine this because we don't know the difference between "not currently collecting" and "never have collected" - that discerning info is not stored anywhere. the best we can do is show what we think the current numeric value is, but annotate some rows with "not currently collecting this metric"
I don't understand. The problem was that even for metrics where not a single row of data was EVER collected, the stats would still have numbers in them.
How can the code not know there are zero rows? It has to calculate the average.