From ce0bd526a6d632386cda94d78b5a774d49d1ed03 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sat, 17 Feb 2018 17:44:06 +0100 Subject: [PATCH] fixed json output for pilerstats Signed-off-by: Janos SUTO --- src/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats.c b/src/stats.c index 9ee50ad1..d0802608 100644 --- a/src/stats.c +++ b/src/stats.c @@ -103,7 +103,7 @@ int main(int argc, char **argv){ close_database(&sdata); - printf("{\n\trcvd=%llu,\n\tsize=%llu,\n\tssize=%llu,\n\tsphx=%llu\n}\n", rcvd, size, ssize, sphx); + printf("{\n\t\"rcvd\": %llu,\n\t\"size\": %llu,\n\t\"ssize\": %llu,\n\t\"sphx\": %llu\n}\n", rcvd, size, ssize, sphx); return 0; }