X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fpostgresql.c;h=c240e5438297b28e29e7b04d7f1180dd102a979b;hp=1eaf6bd3877570a56c0e50c045b7e90cc888cda2;hb=d3db12b73a1c3c17a2dfc0ba96ec99490088c957;hpb=b6fbfb1b864be53e71d755fba59d633f5c30da7e 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);