aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-15 17:01:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-15 17:01:27 +0100
commit9ec5b68037f98d122410a251d76a2dd05c4cb68c (patch)
treee536674d276bebd374b61f8a5cffccbabdf2655f /test
parentf7d7776b1404f8387feb411f8eccf3d928de8283 (diff)
downloadrspamd-9ec5b68037f98d122410a251d76a2dd05c4cb68c.tar.gz
rspamd-9ec5b68037f98d122410a251d76a2dd05c4cb68c.zip
Fix rrd tests.
Diffstat (limited to 'test')
-rw-r--r--test/rspamd_rrd_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/rspamd_rrd_test.c b/test/rspamd_rrd_test.c
index f725e79e7..c41cb7376 100644
--- a/test/rspamd_rrd_test.c
+++ b/test/rspamd_rrd_test.c
@@ -50,7 +50,7 @@ rspamd_rrd_test_func ()
g_assert ((rrd = rspamd_rrd_create (tmpfile, 2, 2, 1, ticks, &err)) != NULL);
/* Add RRA */
rrd_make_default_rra ("AVERAGE", pdp_per_cdp, rows_cnt, &rra[0]);
- rrd_make_default_rra ("AVERAGE", pdp_per_cdp / 2, rows_cnt, &rra[1]);
+ rrd_make_default_rra ("AVERAGE", pdp_per_cdp / 4, rows_cnt, &rra[1]);
ar.data = rra;
ar.len = sizeof (rra);
g_assert (rspamd_rrd_add_rra (rrd, &ar, &err));
@@ -79,7 +79,7 @@ rspamd_rrd_test_func ()
}
/* Add some more points */
- for (i = 0; i < pdp_per_cdp * rows_cnt / 2; i ++) {
+ for (i = 0; i < pdp_per_cdp * rows_cnt / 4; i ++) {
t[0] = i + rspamd_time_jitter (1.0, 0.0);
t[1] = cnt ++;
ar.data = t;
@@ -103,5 +103,4 @@ rspamd_rrd_test_func ()
/* Finish */
rspamd_rrd_close (rrd);
/* unlink (tmpfile); */
-
}