1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-29 16:04:33 +00:00

Add a system status line to the formatted output.

This commit is contained in:
Con Kolivas 2011-07-15 09:38:52 +10:00
parent 34ecc59f4d
commit 23e4add229
2 changed files with 19 additions and 2 deletions

12
README
View File

@ -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
View File

@ -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[])
opt_n_threads = num_processors;
}
logcursor = 4;
logcursor = 6;
mining_threads = opt_n_threads + gpu_threads;
gpucursor = logcursor;
cpucursor = gpucursor + nDevs;