Browse Source

Use bfg_wprintw for runtime

Luke Dashjr 12 years ago
parent
commit
980ac528c6
1 changed files with 3 additions and 5 deletions
  1. 3 5
      miner.c

+ 3 - 5
miner.c

@@ -2896,11 +2896,9 @@ static void curses_print_status(void)
 	wattron(statuswin, A_BOLD);
 	wattron(statuswin, A_BOLD);
 	mvwprintw(statuswin, 0, 0, " " PACKAGE " version " VERSION " - Started: %s", datestamp);
 	mvwprintw(statuswin, 0, 0, " " PACKAGE " version " VERSION " - Started: %s", datestamp);
 	timer_set_now(&now);
 	timer_set_now(&now);
-	{
-		char timerstr[20];
-		format_elapsed(timerstr, BTF_BRACKETS | BTF_DATE | BTF_TIME, timer_elapsed(&miner_started, &now));
-		wprintw(statuswin, " - %s", timerstr);
-	}
+	bfg_wprintw(statuswin, " - "BPRIte,
+	            (BTF_BRACKETS | BTF_DATE | BTF_TIME),
+	            timer_elapsed(&miner_started, &now));
 	wattroff(statuswin, A_BOLD);
 	wattroff(statuswin, A_BOLD);
 	wmove(statuswin, 5, 1);
 	wmove(statuswin, 5, 1);
 	bfg_waddstr(statuswin, statusline);
 	bfg_waddstr(statuswin, statusline);