summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd0f5ac)
raw | patch | inline | side by side (parent: bd0f5ac)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 26 Jan 2016 23:16:41 +0000 (00:16 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 26 Jan 2016 23:16:41 +0000 (00:16 +0100) |
src/frontend/query.c | patch | blob | history |
diff --git a/src/frontend/query.c b/src/frontend/query.c
index 2e2832469e8d2fed9beb2a405faa513f05edd09c..f8d6a1f2dc8e518ca3843752794789f94361b3d4 100644 (file)
--- a/src/frontend/query.c
+++ b/src/frontend/query.c
@@ -249,6 +249,8 @@ exec_timeseries(sdb_ast_timeseries_t *ts, sdb_strbuf_t *buf, sdb_strbuf_t *errbu
if (status >= 0) {
series = sdb_plugin_fetch_timeseries(st.type, st.id, &opts);
if (series) {
+ uint32_t res_type = htonl(SDB_CONNECTION_TIMESERIES);
+ sdb_strbuf_memcpy(buf, &res_type, sizeof(res_type));
sdb_timeseries_tojson(series, buf);
sdb_timeseries_destroy(series);
}