projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Statsd: avoid doing a division by zero when calculating the percentile with an empty...
[collectd.git]
/
src
/
postgresql.c
diff --git
a/src/postgresql.c
b/src/postgresql.c
index
1eaf6bd
..
16e539a
100644
(file)
--- a/
src/postgresql.c
+++ b/
src/postgresql.c
@@
-571,6
+571,7
@@
static int c_psql_exec_query (c_psql_database_t *db, udb_query_t *q,
}
if (C_PSQL_IS_UNIX_DOMAIN_SOCKET (db->host)
+ || (0 == strcmp (db->host, "127.0.0.1"))
|| (0 == strcmp (db->host, "localhost")))
host = hostname_g;
else