Browse Source

Revert "RPC: Remove "Bytes Recv" since it is incorrect"

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

+ 1 - 1
API-README

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

+ 0 - 2
api.c

@@ -2745,9 +2745,7 @@ 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, "Times Sent", &(pool_stats->times_sent), false);
 		root = api_add_uint64(root, "Bytes Sent", &(pool_stats->bytes_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);
 		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);
 		root = api_add_uint64(root, "Bytes Recv", &(pool_stats->bytes_received), false);
- */
 	}
 	}
 
 
 	if (extra)
 	if (extra)