Browse Source

correct device DR: and remove global U:

nfactor-troky
Kano 12 years ago
parent
commit
a94b7be3bc
  1. 3
      README
  2. 11
      cgminer.c

3
README

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

11
cgminer.c

@ -2174,10 +2174,10 @@ static void curses_print_devstatus(struct cgpu_info *cgpu, int count)
adj_width(cgpu->hw_errors, &hwwidth); adj_width(cgpu->hw_errors, &hwwidth);
adj_width(wu, &wuwidth); adj_width(wu, &wuwidth);
wprintw(statuswin, "/%6sh/s | DA:%*.0f DR:%*d HW:%*d WU:%*.2f/m", wprintw(statuswin, "/%6sh/s | DA:%*.0f DR:%*.0f HW:%*d WU:%*.2f/m",
displayed_hashes, displayed_hashes,
dawidth, cgpu->diff_accepted, dawidth, cgpu->diff_accepted,
drwidth, cgpu->rejected, drwidth, cgpu->diff_rejected,
hwwidth, cgpu->hw_errors, hwwidth, cgpu->hw_errors,
wuwidth + 3, wu); wuwidth + 3, wu);
@ -4646,7 +4646,6 @@ static void hashmeter(int thr_id, struct timeval *diff,
struct timeval temp_tv_end, total_diff; struct timeval temp_tv_end, total_diff;
double secs; double secs;
double local_secs; double local_secs;
double utility;
static double local_mhashes_done = 0; static double local_mhashes_done = 0;
static double rolling = 0; static double rolling = 0;
double local_mhashes; double local_mhashes;
@ -4728,17 +4727,15 @@ static void hashmeter(int thr_id, struct timeval *diff,
total_secs = (double)total_diff.tv_sec + total_secs = (double)total_diff.tv_sec +
((double)total_diff.tv_usec / 1000000.0); ((double)total_diff.tv_usec / 1000000.0);
utility = total_accepted / total_secs * 60;
dh64 = (double)total_mhashes_done / total_secs * 1000000ull; dh64 = (double)total_mhashes_done / total_secs * 1000000ull;
dr64 = (double)rolling * 1000000ull; dr64 = (double)rolling * 1000000ull;
suffix_string(dh64, displayed_hashes, 4); suffix_string(dh64, displayed_hashes, 4);
suffix_string(dr64, displayed_rolling, 4); suffix_string(dr64, displayed_rolling, 4);
sprintf(statusline, "%s(%ds):%s (avg):%sh/s | DA:%.0f DR:%.0f HW:%d U:%.1f/m WU:%.1f/m", sprintf(statusline, "%s(%ds):%s (avg):%sh/s | DA:%.0f DR:%.0f HW:%d WU:%.1f/m",
want_per_device_stats ? "ALL " : "", want_per_device_stats ? "ALL " : "",
opt_log_interval, displayed_rolling, displayed_hashes, opt_log_interval, displayed_rolling, displayed_hashes,
total_diff_accepted, total_diff_rejected, hw_errors, utility, total_diff_accepted, total_diff_rejected, hw_errors,
total_diff1 / total_secs * 60); total_diff1 / total_secs * 60);
local_mhashes_done = 0; local_mhashes_done = 0;

Loading…
Cancel
Save