Browse Source

Bugfix: Avoid unnecessary locks inside curses_print_status, which is called with the console lock held

Luke Dashjr 12 years ago
parent
commit
c91ee3ea89
1 changed files with 2 additions and 2 deletions
  1. 2 2
      miner.c

+ 2 - 2
miner.c

@@ -2659,7 +2659,7 @@ static void text_print_status(int thr_id)
 /* Must be called with curses mutex lock held and curses_active */
 static void curses_print_status(void)
 {
-	struct pool *pool = current_pool();
+	struct pool *pool = currentpool;
 	struct timeval now, tv;
 	float efficiency;
 	double utility;
@@ -2696,7 +2696,7 @@ static void curses_print_status(void)
 
 	char bwstr[12];
 	mvwprintw(statuswin, 3, 0, " ST:%d  F:%d  NB:%d  AS:%d  BW:[%s]  E:%.2f  U:%.1f/m  BS:%s",
-		total_staged(),
+		__total_staged(),
 		total_go + total_ro,
 		new_blocks,
 		total_submitting,