Browse Source

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.
nfactor-troky
Martin Danielsen 11 years ago committed by Noel Maersk
parent
commit
89663c7e94
  1. 10
      cgminer.c
  2. 2
      driver-opencl.c

10
cgminer.c

@ -2109,13 +2109,15 @@ static void curses_print_devstatus(struct cgpu_info *cgpu, int count) @@ -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);

2
driver-opencl.c

@ -1049,7 +1049,7 @@ static void get_opencl_statline_before(char *buf, size_t bufsiz, struct cgpu_inf @@ -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…
Cancel
Save