diff options
author | Simon Nagl <sin6332@thi.de> | 2017-02-11 12:08:28 +0100 |
---|---|---|
committer | Simon Nagl <sin6332@thi.de> | 2017-02-11 12:08:28 +0100 |
commit | 541ed96c3a6bff68f9f4a87c4a68db8cc4517599 (patch) | |
tree | 5f2a68177f2af1e9d48f600734aab2d2c0ffa726 /src/rrd2json.c | |
parent | 0c6b8627aa92547d5f224d24a24693f51065f052 (diff) |
Add version to api/v1/charts
Prereleases now have the suffix _prerelease if git is not there.
Diffstat (limited to 'src/rrd2json.c')
-rw-r--r-- | src/rrd2json.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rrd2json.c b/src/rrd2json.c index 904b606498..b886b25fd2 100644 --- a/src/rrd2json.c +++ b/src/rrd2json.c @@ -85,11 +85,13 @@ void rrd_stats_api_v1_charts(BUFFER *wb) buffer_sprintf(wb, "{\n" "\t\"hostname\": \"%s\"" + ",\n\t\"version\": \"%s\"" ",\n\t\"os\": \"%s\"" ",\n\t\"update_every\": %d" ",\n\t\"history\": %d" ",\n\t\"charts\": {" , localhost.hostname + , program_version , os_type , rrd_update_every , rrd_default_history_entries |