Browse Source

RPC: Remove "Bytes Recv" since it is incorrect

Luke Dashjr 13 years ago
parent
commit
12a23da105
2 changed files with 3 additions and 1 deletions
  1. 1 1
      API-README
  2. 2 0
      api.c

+ 1 - 1
API-README

@@ -393,7 +393,7 @@ Enforced output limitation:
   set to 0 (instead of 1) if any data was truncated
 
 Modified API commands:
- 'stats' - add 'Times Sent', 'Bytes Sent', 'Times Recv', 'Bytes Recv'
+ 'stats' - add 'Times Sent', 'Bytes Sent', 'Times Recv'
 
 ----------
 

+ 2 - 0
api.c

@@ -2745,7 +2745,9 @@ static int itemstats(struct io_data *io_data, int i, char *id, struct cgminer_st
 		root = api_add_uint64(root, "Times Sent", &(pool_stats->times_sent), false);
 		root = api_add_uint64(root, "Bytes Sent", &(pool_stats->bytes_sent), false);
 		root = api_add_uint64(root, "Times Recv", &(pool_stats->times_received), false);
+/* This is disabled for now, since it is incorrect:
 		root = api_add_uint64(root, "Bytes Recv", &(pool_stats->bytes_received), false);
+ */
 	}
 
 	if (extra)