projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/utils_format_json.[ch]: Export gauges with 15 decimal places of precision.
[collectd.git]
/
src
/
utils_format_json.h
diff --git
a/src/utils_format_json.h
b/src/utils_format_json.h
index
c902e27
..
f8f5a35
100644
(file)
--- a/
src/utils_format_json.h
+++ b/
src/utils_format_json.h
@@
-25,6
+25,10
@@
#include "collectd.h"
#include "plugin.h"
+#ifndef JSON_GAUGE_FORMAT
+# define JSON_GAUGE_FORMAT "%.15g"
+#endif
+
int format_json_initialize (char *buffer,
size_t *ret_buffer_fill, size_t *ret_buffer_free);
int format_json_value_list (char *buffer,