summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2cb258)
raw | patch | inline | side by side (parent: e2cb258)
author | Igor Peshansky <igorpeshansky@github.com> | |
Thu, 15 Sep 2016 17:45:04 +0000 (13:45 -0400) | ||
committer | Igor Peshansky <igorpeshansky@github.com> | |
Thu, 15 Sep 2016 18:29:49 +0000 (14:29 -0400) |
Update postgresql docs to reflect reality.
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 0fa74d54bbe515d49aef330fd2adb20d9ef2a831..20d8c6b6e1c6860ffc09820882985bc9eb0b8827 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
=item B<$1>
-The timestamp of the queried value as a floating point number.
+The timestamp of the queried value as an RFC 3339-formatted local time.
=item B<$2>
diff --git a/src/postgresql.c b/src/postgresql.c
index c92f6ee148a149a4c67aafd39ba862a8155784c6..8b6094923c448b3a1060a7f1752bd8f4e7f4bca2 100644 (file)
--- a/src/postgresql.c
+++ b/src/postgresql.c
assert (db->database != NULL);
assert (db->writers != NULL);
- /* TODO: Should this be rfc3339nano_local()? */
- if (rfc3339nano (time_str, sizeof (time_str), vl->time) != 0) {
+ if (rfc3339nano_local (time_str, sizeof (time_str), vl->time) != 0) {
log_err ("c_psql_write: Failed to convert time to RFC 3339 format");
return -1;
}