mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-04 11:04:26 +00:00
Display reject percentage instead of absolute accepted/rejected values
Changed GPU status line from "A:xxxxx R:xxx" to "R:0.0%". It shows (rejected/(accepted+rejected))*100, which is the percentage of rejections for a GPU. Total accepted and rejected in top status is unchanged. GPU status lines now show both threads and intensity.
This commit is contained in:
parent
3ade514b94
commit
89663c7e94
10
cgminer.c
10
cgminer.c
@ -2109,13 +2109,15 @@ static void curses_print_devstatus(struct cgpu_info *cgpu, int count)
|
||||
adj_width(cgpu->hw_errors, &hwwidth);
|
||||
adj_width(wu, &wuwidth);
|
||||
|
||||
cg_wprintw(statuswin, "/%6sh/s | A:%*.0f R:%*.0f HW:%*d WU:%*.1f/m",
|
||||
float reject_pct = 0.0;
|
||||
if ((cgpu->diff_accepted + cgpu->diff_rejected) > 0)
|
||||
reject_pct = (cgpu->diff_rejected / (cgpu->diff_accepted + cgpu->diff_rejected)) * 100;
|
||||
|
||||
cg_wprintw(statuswin, "/%6sh/s | R:%*.1f%% HW:%*d WU:%*.1f/m",
|
||||
displayed_hashes,
|
||||
dawidth, cgpu->diff_accepted,
|
||||
drwidth, cgpu->diff_rejected,
|
||||
drwidth, reject_pct,
|
||||
hwwidth, cgpu->hw_errors,
|
||||
wuwidth + 2, wu);
|
||||
|
||||
logline[0] = '\0';
|
||||
cgpu->drv->get_statline(logline, sizeof(logline), cgpu);
|
||||
cg_wprintw(statuswin, "%s", logline);
|
||||
|
@ -1049,7 +1049,7 @@ static void get_opencl_statline_before(char *buf, size_t bufsiz, struct cgpu_inf
|
||||
|
||||
static void get_opencl_statline(char *buf, size_t bufsiz, struct cgpu_info *gpu)
|
||||
{
|
||||
tailsprintf(buf, bufsiz, " I:%2d", gpu->intensity);
|
||||
tailsprintf(buf, bufsiz, " T:%d I:%2d", gpu->threads, gpu->intensity);
|
||||
}
|
||||
|
||||
struct opencl_thread_data {
|
||||
|
Loading…
x
Reference in New Issue
Block a user