From b871f69f6226bb4fbd7c08517a26792b7635d1e6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 30 Sep 2012 19:13:50 +1000 Subject: [PATCH] Display stratum as mechanism in status line when current pool is running it. --- cgminer.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cgminer.c b/cgminer.c index 0cfa1c49..d76549e4 100644 --- a/cgminer.c +++ b/cgminer.c @@ -1522,12 +1522,16 @@ static void curses_print_status(void) global_queued(), total_staged(), total_stale, total_discarded, new_blocks, local_work, total_go, total_ro, total_diff1 / total_secs * 60); wclrtoeol(statuswin); - if ((pool_strategy == POOL_LOADBALANCE || pool_strategy == POOL_BALANCE) && total_pools > 1) + if (pool->has_stratum) { + mvwprintw(statuswin, 4, 0, " Connected to %s with stratum as user %s", + pool->stratum_url, pool->rpc_user); + } else if ((pool_strategy == POOL_LOADBALANCE || pool_strategy == POOL_BALANCE) && total_pools > 1) { mvwprintw(statuswin, 4, 0, " Connected to multiple pools with%s LP", have_longpoll ? "": "out"); - else + } else { mvwprintw(statuswin, 4, 0, " Connected to %s with%s LP as user %s", pool->rpc_url, have_longpoll ? "": "out", pool->rpc_user); + } wclrtoeol(statuswin); mvwprintw(statuswin, 5, 0, " Block: %s... Started: %s", current_hash, blocktime); mvwhline(statuswin, 6, 0, '-', 80);