diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2020-09-15 19:41:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-15 19:41:39 +0300 |
commit | 8f6f1baf9a5686fbd06273ed081d4e40d51bdc74 (patch) | |
tree | a0bade47cb44b8ee4c8e2009bd3ee5ee6f3f1c09 /daemon | |
parent | 59a2aec9c8fb2dfbcfe80668571c39cc08af770c (diff) |
Added context parameter to the data endpoint (#9931)
Added functionality to support composite charts
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/unit_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/unit_test.c b/daemon/unit_test.c index 116fe7061d..10fa8e4ba7 100644 --- a/daemon/unit_test.c +++ b/daemon/unit_test.c @@ -1673,7 +1673,7 @@ static int test_dbengine_check_rrdr(RRDSET *st[CHARTS], RRDDIM *rd[CHARTS][DIMS] update_every = REGION_UPDATE_EVERY[current_region]; long points = (time_end - time_start) / update_every - 1; for (i = 0 ; i < CHARTS ; ++i) { - RRDR *r = rrd2rrdr(st[i], points, time_start + update_every, time_end, RRDR_GROUPING_AVERAGE, 0, 0, NULL); + RRDR *r = rrd2rrdr(st[i], points, time_start + update_every, time_end, RRDR_GROUPING_AVERAGE, 0, 0, NULL, NULL); if (!r) { fprintf(stderr, " DB-engine unittest %s: empty RRDR ### E R R O R ###\n", st[i]->name); return ++errors; @@ -1792,7 +1792,7 @@ int test_dbengine(void) long points = (time_end[REGIONS - 1] - time_start[0]) / update_every - 1; // cover all time regions with RRDR long point_offset = (time_start[current_region] - time_start[0]) / update_every; for (i = 0 ; i < CHARTS ; ++i) { - RRDR *r = rrd2rrdr(st[i], points, time_start[0] + update_every, time_end[REGIONS - 1], RRDR_GROUPING_AVERAGE, 0, 0, NULL); + RRDR *r = rrd2rrdr(st[i], points, time_start[0] + update_every, time_end[REGIONS - 1], RRDR_GROUPING_AVERAGE, 0, 0, NULL, NULL); if (!r) { fprintf(stderr, " DB-engine unittest %s: empty RRDR ### E R R O R ###\n", st[i]->name); ++errors; |