From 195d915a6cf8aa8aad6949fa7e2873285004aa0f Mon Sep 17 00:00:00 2001 From: Kano Date: Sun, 24 Jun 2012 16:31:11 +1000 Subject: [PATCH] api.c display Pool Av in json --- api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.c b/api.c index 078c1579..42a38c77 100644 --- a/api.c +++ b/api.c @@ -2113,7 +2113,7 @@ static int itemstats(int i, char *id, struct cgminer_stats *stats, struct cgmine if (pool_stats) { sprintf(buf, isjson - ? ",\"Pool Calls\":%d,\"Pool Attempts\":%d,\"Pool Wait\":%ld.%06ld,\"Pool Max\":%ld.%06ld,\"Pool Min\":%ld.%06ld" + ? ",\"Pool Calls\":%d,\"Pool Attempts\":%d,\"Pool Wait\":%ld.%06ld,\"Pool Max\":%ld.%06ld,\"Pool Min\":%ld.%06ld,\"Pool Av\":%f" : ",Pool Calls=%d,Pool Attempts=%d,Pool Wait=%ld.%06ld,Pool Max=%ld.%06ld,Pool Min=%ld.%06ld,Pool Av=%f", pool_stats->getwork_calls, pool_stats->getwork_attempts, pool_stats->getwork_wait.tv_sec, pool_stats->getwork_wait.tv_usec,