Browse Source

Add new block data to status line.

Con Kolivas 14 years ago
parent
commit
3785e50d3f
2 changed files with 4 additions and 3 deletions
  1. 2 1
      README
  2. 2 2
      main.c

+ 2 - 1
README

@@ -84,12 +84,13 @@ 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: 1  ST: 1  LS: 0  SS: 0  DW: 0  NB: 1  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)
+NB is New Blocks detected on the network
 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)

+ 2 - 2
main.c

@@ -561,8 +561,8 @@ static void curses_print_status(int thr_id)
 	wprintw(statuswin, " %s", statusline);
 	wclrtoeol(statuswin);
 	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,
+	wprintw(statuswin, " TQ: %d  ST: %d  LS: %d  SS: %d  DW: %d  NB: %d  LW: %d  LO: %d  RF: %d  I: %d",
+		total_queued, total_staged, lp_staged, stale_shares, discarded_work, new_blocks,
 		local_work, localgen_occasions, remotefail_occasions, scan_intensity);
 	wclrtoeol(statuswin);
 	wmove(statuswin, 5, 0);