aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-21 09:03:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-21 11:41:46 +0100
commit223c083212db14ef659ce35a1083e72d45301c15 (patch)
tree0573f37fbef5548314399aab17172c938118c8b6 /src
parentd60abd3f68b2f026112bd4d141763e0472fed57e (diff)
downloadrspamd-223c083212db14ef659ce35a1083e72d45301c15.tar.gz
rspamd-223c083212db14ef659ce35a1083e72d45301c15.zip
Adjust rrd intervals.
Diffstat (limited to 'src')
-rw-r--r--src/libutil/rrd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/rrd.c b/src/libutil/rrd.c
index 638f44abe..a4d4ef378 100644
--- a/src/libutil/rrd.c
+++ b/src/libutil/rrd.c
@@ -1261,12 +1261,12 @@ rspamd_rrd_file_default (const gchar *path,
/* Once per 5 minutes for 1 week */
rrd_make_default_rra (rrd_cf_to_string (RRD_CF_AVERAGE),
5 * 60, 7 * 24 * 60 / 5, &rra[1]);
- /* Once per hour for 1 month */
+ /* Once per 10 mins for 1 month */
rrd_make_default_rra (rrd_cf_to_string (RRD_CF_AVERAGE),
- 60 * 60, 30 * 24 * 60 / 3600, &rra[2]);
- /* Once per day for 1 year */
+ 60 * 10, 30 * 24 * 6, &rra[2]);
+ /* Once per hour for 1 year */
rrd_make_default_rra (rrd_cf_to_string (RRD_CF_AVERAGE),
- 60 * 60 * 24, 365 * 24 * 60 / (60 * 60 * 24), &rra[3]);
+ 60 * 60, 365 * 24, &rra[3]);
ar.data = (gchar *)rra;
ar.len = sizeof (rra);