]> arthur.barton.de Git - netdata.git/blobdiff - src/rrd2json_api_old.c
enable qemu cgroups; fixes #1949
[netdata.git] / src / rrd2json_api_old.c
index 3b0283088545c0ea047375c0519731cc1ecb1b16..6710f31cf9071450a17916d5a64b356a094e7113 100644 (file)
@@ -142,7 +142,7 @@ void rrd_all2json_api_old(RRDHOST *host, BUFFER *wb)
     buffer_sprintf(wb, "\n\t],\n"
                     "\t\"hostname\": \"%s\",\n"
                     "\t\"update_every\": %d,\n"
-                    "\t\"history\": %d,\n"
+                    "\t\"history\": %ld,\n"
                     "\t\"memory\": %lu\n"
                     "}\n"
                    , host->hostname