|
|
@@ -1513,7 +1513,7 @@ void devstatus_an(struct io_data *io_data, struct cgpu_info *cgpu, bool isjson,
|
|
|
enum alive status = cgpu->status;
|
|
|
float temp = -1;
|
|
|
int accepted = 0, rejected = 0, stale = 0, hw_errors = 0;
|
|
|
- int diff1 = 0, bad_nonces = 0;
|
|
|
+ double diff1 = 0, bad_nonces = 0;
|
|
|
double diff_accepted = 0, diff_rejected = 0, diff_stale = 0;
|
|
|
int last_share_pool = -1;
|
|
|
time_t last_share_pool_time = -1, last_device_valid_work = -1;
|
|
|
@@ -1577,7 +1577,7 @@ void devstatus_an(struct io_data *io_data, struct cgpu_info *cgpu, bool isjson,
|
|
|
}
|
|
|
root = api_add_mhtotal(root, "Total MH", &total_mhashes, false);
|
|
|
double work_utility = diff1 / runtime * 60;
|
|
|
- root = api_add_int(root, "Diff1 Work", &diff1, false);
|
|
|
+ root = api_add_diff(root, "Diff1 Work", &diff1, false);
|
|
|
root = api_add_utility(root, "Work Utility", &work_utility, false);
|
|
|
root = api_add_diff(root, "Difficulty Accepted", &diff_accepted, false);
|
|
|
root = api_add_diff(root, "Difficulty Rejected", &diff_rejected, false);
|
|
|
@@ -2009,7 +2009,7 @@ static void poolstatus(struct io_data *io_data, __maybe_unused SOCKETTYPE c, __m
|
|
|
root = api_add_uint(root, "Remote Failures", &(pool->remotefail_occasions), false);
|
|
|
root = api_add_escape(root, "User", pool->rpc_user, false);
|
|
|
root = api_add_time(root, "Last Share Time", &(pool->last_share_time), false);
|
|
|
- root = api_add_int(root, "Diff1 Shares", &(pool->diff1), false);
|
|
|
+ root = api_add_diff(root, "Diff1 Shares", &(pool->diff1), false);
|
|
|
if (pool->rpc_proxy) {
|
|
|
root = api_add_escape(root, "Proxy", pool->rpc_proxy, false);
|
|
|
} else {
|
|
|
@@ -2088,7 +2088,7 @@ static void summary(struct io_data *io_data, __maybe_unused SOCKETTYPE c, __mayb
|
|
|
root = api_add_uint(root, "Remote Failures", &(total_ro), true);
|
|
|
root = api_add_uint(root, "Network Blocks", &(new_blocks), true);
|
|
|
root = api_add_mhtotal(root, "Total MH", &(total_mhashes_done), true);
|
|
|
- root = api_add_int(root, "Diff1 Work", &total_diff1, true);
|
|
|
+ root = api_add_diff(root, "Diff1 Work", &total_diff1, true);
|
|
|
root = api_add_utility(root, "Work Utility", &(work_utility), false);
|
|
|
root = api_add_diff(root, "Difficulty Accepted", &(total_diff_accepted), true);
|
|
|
root = api_add_diff(root, "Difficulty Rejected", &(total_diff_rejected), true);
|