summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d1dedca)
raw | patch | inline | side by side (parent: d1dedca)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 26 Mar 2010 20:30:17 +0000 (21:30 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 26 Mar 2010 20:30:17 +0000 (21:30 +0100) |
… i.e., use the database specific interval, if configured.
src/collectd.conf.pod | patch | blob | history | |
src/postgresql.c | patch | blob | history |
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 943a089765b2c23d0c8a793fadd1d7e75a18d6fd..e5782e0f54f1e13c532e8bc5a1390a7e4391e5a1 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
=item I<interval>
-The interval collectd is using (as specified by the B<Interval> option).
+The interval with which this database is queried (as specified by the database
+specific or global B<Interval> options).
=back
diff --git a/src/postgresql.c b/src/postgresql.c
index 6698e0ee4dba81ea5995bff4635ef97d031735c4..0141b23e22bed1236cc92bc8bd6a338f3689547a 100644 (file)
--- a/src/postgresql.c
+++ b/src/postgresql.c
params[i] = db->user;
break;
case C_PSQL_PARAM_INTERVAL:
- ssnprintf (interval, sizeof (interval), "%i", interval_g);
+ ssnprintf (interval, sizeof (interval), "%i",
+ db->interval > 0 ? db->interval : interval_g);
params[i] = interval;
break;
default: