Browse Source

Just display A: and R: for difficulty accepted and rejected to preserve screen real estate and decrease decimal places for WU.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
1b81ecf932
  1. 8
      README
  2. 6
      cgminer.c

8
README

@ -420,18 +420,18 @@ dedicated to this program, @@ -420,18 +420,18 @@ dedicated to this program,
http://forum.bitcoin.org/index.php?topic=28402.0
The output line shows the following:
(5s):1713.6 (avg):1707.8 Mh/s | DA:729 DR:8 HW:0 WU:22.53/m
(5s):1713.6 (avg):1707.8 Mh/s | A:729 R:8 HW:0 WU:22.53/m
Each column is as follows:
5s: A 5 second exponentially decaying average hash rate
avg: An all time average hash rate
DA: The total difficulty of Accepted shares
DR: The total difficulty of Rejected shares
A: The total difficulty of Accepted shares
R: The total difficulty of Rejected shares
HW: The number of HardWare errors
WU: The Work Utility defined as the number of diff1 shares work / minute
(accepted or rejected).
GPU 1: 73.5C 2551RPM | 427.3/443.0Mh/s | DA:8 DR:0 HW:0 WU:4.39/m
GPU 1: 73.5C 2551RPM | 427.3/443.0Mh/s | A:8 R:0 HW:0 WU:4.39/m
Each column is as follows:
Temperature (if supported)

6
cgminer.c

@ -2039,7 +2039,7 @@ static void get_statline(char *buf, struct cgpu_info *cgpu) @@ -2039,7 +2039,7 @@ static void get_statline(char *buf, struct cgpu_info *cgpu)
sprintf(buf, "%s%d ", cgpu->drv->name, cgpu->device_id);
cgpu->drv->get_statline_before(buf, cgpu);
tailsprintf(buf, "(%ds):%s (avg):%sh/s | DA:%.0f DR:%.0f HW:%d WU:%.1f/m",
tailsprintf(buf, "(%ds):%s (avg):%sh/s | A:%.0f R:%.0f HW:%d WU:%.1f/m",
opt_log_interval,
displayed_rolling,
displayed_hashes,
@ -2174,7 +2174,7 @@ static void curses_print_devstatus(struct cgpu_info *cgpu, int count) @@ -2174,7 +2174,7 @@ static void curses_print_devstatus(struct cgpu_info *cgpu, int count)
adj_width(cgpu->hw_errors, &hwwidth);
adj_width(wu, &wuwidth);
wprintw(statuswin, "/%6sh/s | DA:%*.0f DR:%*.0f HW:%*d WU:%*.2f/m",
wprintw(statuswin, "/%6sh/s | A:%*.0f R:%*.0f HW:%*d WU:%*.1f/m",
displayed_hashes,
dawidth, cgpu->diff_accepted,
drwidth, cgpu->diff_rejected,
@ -4732,7 +4732,7 @@ static void hashmeter(int thr_id, struct timeval *diff, @@ -4732,7 +4732,7 @@ static void hashmeter(int thr_id, struct timeval *diff,
suffix_string(dh64, displayed_hashes, 4);
suffix_string(dr64, displayed_rolling, 4);
sprintf(statusline, "%s(%ds):%s (avg):%sh/s | DA:%.0f DR:%.0f HW:%d WU:%.1f/m",
sprintf(statusline, "%s(%ds):%s (avg):%sh/s | A:%.0f R:%.0f HW:%d WU:%.1f/m",
want_per_device_stats ? "ALL " : "",
opt_log_interval, displayed_rolling, displayed_hashes,
total_diff_accepted, total_diff_rejected, hw_errors,

Loading…
Cancel
Save