--sysconfdir="${NETDATA_PREFIX}/etc" \
--localstatedir="${NETDATA_PREFIX}/var" \
--with-zlib --with-math --with-user=netdata \
- CFLAGS="-O3" || exit 1
+ CFLAGS="-O2" || exit 1
# remove the build_error hook
trap - EXIT
i++;
}
if(!i) {
+#ifdef NETDATA_INTERNAL_CHECKS
+ error("RRDR is empty for %s (RRDR has %d dimensions, options is 0x%08x)", r->st->id, r->d, options);
+#endif
rows = 0;
buffer_strcat(wb, sq);
buffer_strcat(wb, "no data");
// initialize our result set
RRDR *r = rrdr_create(st, points);
- if(!r) return NULL;
- if(!r->d) return r;
+ if(!r) {
+#ifdef NETDATA_INTERNAL_CHECKS
+ error("Cannot create RRDR for %s, after=%u, before=%u, duration=%u, points=%d", st->id, after, before, duration, points);
+#endif
+ return NULL;
+ }
+ if(!r->d) {
+#ifdef NETDATA_INTERNAL_CHECKS
+ error("Returning empty RRDR (no dimensions in RRDSET) for %s, after=%u, before=%u, duration=%u, points=%d", st->id, after, before, duration, points);
+#endif
+ return r;
+ }
// find how many dimensions we have
long dimensions = r->d;
destroy_on_hide: false, // destroy charts when they are not visible
- eliminate_zero_dimensions: false, // do not show dimensions with just zeros
+ eliminate_zero_dimensions: true, // do not show dimensions with just zeros
color_fill_opacity: {
line: 1.0,