|
@@ -1427,6 +1427,7 @@ static void devstatus_an(struct cgpu_info *cgpu, bool isjson)
|
|
|
root = api_add_int(root, "Diff1 Work", &(cgpu->diff1), false);
|
|
root = api_add_int(root, "Diff1 Work", &(cgpu->diff1), false);
|
|
|
root = api_add_diff(root, "Difficulty Accepted", &(cgpu->diff_accepted), false);
|
|
root = api_add_diff(root, "Difficulty Accepted", &(cgpu->diff_accepted), false);
|
|
|
root = api_add_diff(root, "Difficulty Rejected", &(cgpu->diff_rejected), false);
|
|
root = api_add_diff(root, "Difficulty Rejected", &(cgpu->diff_rejected), false);
|
|
|
|
|
+ root = api_add_diff(root, "Last Share Difficulty", &(cgpu->last_share_diff), false);
|
|
|
|
|
|
|
|
if (cgpu->api->get_api_extra_device_status)
|
|
if (cgpu->api->get_api_extra_device_status)
|
|
|
root = api_add_extra(root, cgpu->api->get_api_extra_device_status(cgpu));
|
|
root = api_add_extra(root, cgpu->api->get_api_extra_device_status(cgpu));
|
|
@@ -1809,6 +1810,7 @@ static void poolstatus(__maybe_unused SOCKETTYPE c, __maybe_unused char *param,
|
|
|
root = api_add_diff(root, "Difficulty Accepted", &(pool->diff_accepted), false);
|
|
root = api_add_diff(root, "Difficulty Accepted", &(pool->diff_accepted), false);
|
|
|
root = api_add_diff(root, "Difficulty Rejected", &(pool->diff_rejected), false);
|
|
root = api_add_diff(root, "Difficulty Rejected", &(pool->diff_rejected), false);
|
|
|
root = api_add_diff(root, "Difficulty Stale", &(pool->diff_stale), false);
|
|
root = api_add_diff(root, "Difficulty Stale", &(pool->diff_stale), false);
|
|
|
|
|
+ root = api_add_diff(root, "Last Share Difficulty", &(pool->last_share_diff), false);
|
|
|
|
|
|
|
|
if (isjson && (i > 0))
|
|
if (isjson && (i > 0))
|
|
|
strcat(io_buffer, COMMA);
|
|
strcat(io_buffer, COMMA);
|