diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-06-09 00:48:13 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-06-09 00:48:13 +0300 |
commit | ee5e75888e5852313ddfea6e7acd1f36cf3afd62 (patch) | |
tree | a2b41abb8adce77d336926aad26fb6521f46ce5a /src/rrdpush.c | |
parent | 6bd9fe43cf00d9522ca5437f1b13e91e3a718621 (diff) |
allow streaming strings to be escaped in a json compatible way; #2276
Diffstat (limited to 'src/rrdpush.c')
-rw-r--r-- | src/rrdpush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rrdpush.c b/src/rrdpush.c index 3cc5097fc4..b055fa3d11 100644 --- a/src/rrdpush.c +++ b/src/rrdpush.c @@ -74,7 +74,7 @@ static inline int need_to_send_chart_definition(RRDSET *st) { // sends the current chart definition static inline void send_chart_definition(RRDSET *st) { - buffer_sprintf(st->rrdhost->rrdpush_buffer, "CHART '%s' '%s' '%s' '%s' '%s' '%s' '%s' %ld %d\n" + buffer_sprintf(st->rrdhost->rrdpush_buffer, "CHART \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" %ld %d\n" , st->id , st->name , st->title @@ -88,7 +88,7 @@ static inline void send_chart_definition(RRDSET *st) { RRDDIM *rd; rrddim_foreach_read(rd, st) { - buffer_sprintf(st->rrdhost->rrdpush_buffer, "DIMENSION '%s' '%s' '%s' " COLLECTED_NUMBER_FORMAT " " COLLECTED_NUMBER_FORMAT " '%s %s'\n" + buffer_sprintf(st->rrdhost->rrdpush_buffer, "DIMENSION \"%s\" \"%s\" \"%s\" " COLLECTED_NUMBER_FORMAT " " COLLECTED_NUMBER_FORMAT " \"%s %s\"\n" , rd->id , rd->name , rrd_algorithm_name(rd->algorithm) |