Add a system status line to the formatted output.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
diff --git a/README b/README
index bb73c5a..73ffc51 100644
--- a/README
+++ b/README
@@ -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).
diff --git a/main.c b/main.c
index f8dc242..b3ad994 100644
--- a/main.c
+++ b/main.c
@@ -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;