X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Frrd2json_api_old.c;h=6710f31cf9071450a17916d5a64b356a094e7113;hb=e1d37e04f50157086257a5d91cf8cffd27bc80b1;hp=3b0283088545c0ea047375c0519731cc1ecb1b16;hpb=73212e3a8731012fee476e373f4a5b647f5126e5;p=netdata.git diff --git a/src/rrd2json_api_old.c b/src/rrd2json_api_old.c index 3b028308..6710f31c 100644 --- a/src/rrd2json_api_old.c +++ b/src/rrd2json_api_old.c @@ -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