Browse Source

Add a system status line to the formatted output.

nfactor-troky
Con Kolivas 14 years ago
parent
commit
23e4add229
  1. 12
      README
  2. 9
      main.c

12
README

@ -82,3 +82,15 @@ The number of rejected shares @@ -82,3 +82,15 @@ The number of rejected shares
The number of hardware erorrs
The efficiency defined as the accepted shares / requested work
The utility defines as the number of shares / minute
The cgminer status line shows:
TQ: 1 ST: 1 LS: 0 SS: 0 DW: 0 LW: 8 LO: 1 RF: 1 I: 2
TQ is Total Queued work items.
ST is STaged work items (ready to use).
LS is Longpoll Staged work items (mandatory new work)
DW is Discarded Work items (work from block no longer valid to work on)
LW is Locally generated Work items (during slow server providing work)
LO is Local generation Occasions (server slow to provide work)
RF is Remote Fail occasions (server slow to accept work)
I is current Intensity (changes in dynamic mode).

9
main.c

@ -564,7 +564,12 @@ static void curses_print_status(int thr_id) @@ -564,7 +564,12 @@ static void curses_print_status(int thr_id)
wmove(statuswin, 2,0);
wprintw(statuswin, " %s", statusline);
wclrtoeol(statuswin);
wmove(statuswin, 3, 0);
wmove(statuswin, 4,0);
wprintw(statuswin, " TQ: %d ST: %d LS: %d SS: %d DW: %d LW: %d LO: %d RF: %d I: %d",
total_queued, total_staged, lp_staged, stale_shares, discarded_work,
local_work, localgen_occasions, remotefail_occasions, scan_intensity);
wclrtoeol(statuswin);
wmove(statuswin, 5, 0);
whline(statuswin, '-', 80);
wmove(statuswin, logstart - 1, 0);
whline(statuswin, '-', 80);
@ -2127,7 +2132,7 @@ int main (int argc, char *argv[]) @@ -2127,7 +2132,7 @@ int main (int argc, char *argv[])
opt_n_threads = num_processors;
}
logcursor = 4;
logcursor = 6;
mining_threads = opt_n_threads + gpu_threads;
gpucursor = logcursor;
cpucursor = gpucursor + nDevs;

Loading…
Cancel
Save