X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fpostgresql.c;h=c240e5438297b28e29e7b04d7f1180dd102a979b;hb=9c3ed6462c15fd1cb664cd0ec2a5efb289aa1af6;hp=1eaf6bd3877570a56c0e50c045b7e90cc888cda2;hpb=7285e5f59ffa4efb391485fe9b35ee02f3dc856f;p=collectd.git diff --git a/src/postgresql.c b/src/postgresql.c index 1eaf6bd3..c240e543 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -775,7 +775,7 @@ static char *values_to_sqlarray (const data_set_t *ds, const value_list_t *vl, if (ds->ds[i].type == DS_TYPE_GAUGE) status = ssnprintf (str_ptr, str_len, - ",%f", vl->values[i].gauge); + ","GAUGE_FORMAT, vl->values[i].gauge); else if (store_rates) { if (rates == NULL) rates = uc_get_rate (ds, vl);