From 11920081ec8314107e305de93e8ac14295182ee3 Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Wed, 15 Jan 2014 17:20:54 +0200 Subject: [PATCH] ui: Don't pad most displayed strings with spaces. --- sgminer.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sgminer.c b/sgminer.c index 2a7d8dcd..bf4fe078 100644 --- a/sgminer.c +++ b/sgminer.c @@ -2006,32 +2006,32 @@ static void curses_print_status(void) struct pool *pool = current_pool(); wattron(statuswin, A_BOLD); - cg_mvwprintw(statuswin, 0, 0, " " PACKAGE " version " VERSION " - Started: %s", datestamp); + cg_mvwprintw(statuswin, 0, 0, PACKAGE " version " VERSION " - Started: %s", datestamp); wattroff(statuswin, A_BOLD); mvwhline(statuswin, 1, 0, '-', 80); - cg_mvwprintw(statuswin, 2, 0, " %s", statusline); + cg_mvwprintw(statuswin, 2, 0, "%s", statusline); wclrtoeol(statuswin); - cg_mvwprintw(statuswin, 3, 0, " ST: %d SS: %d NB: %d LW: %d GF: %d RF: %d", + cg_mvwprintw(statuswin, 3, 0, "ST: %d SS: %d NB: %d LW: %d GF: %d RF: %d", total_staged(), total_stale, new_blocks, local_work, total_go, total_ro); wclrtoeol(statuswin); if (shared_strategy() && total_pools > 1) { - cg_mvwprintw(statuswin, 4, 0, " Connected to multiple pools with%s block change notify", + cg_mvwprintw(statuswin, 4, 0, "Connected to multiple pools with%s block change notify", have_longpoll ? "": "out"); } else if (pool->has_stratum) { - cg_mvwprintw(statuswin, 4, 0, " Connected to %s diff %s with stratum as user %s", + cg_mvwprintw(statuswin, 4, 0, "Connected to %s diff %s with stratum as user %s", pool->sockaddr_url, pool->diff, pool->rpc_user); } else { - cg_mvwprintw(statuswin, 4, 0, " Connected to %s diff %s with%s %s as user %s", + cg_mvwprintw(statuswin, 4, 0, "Connected to %s diff %s with%s %s as user %s", pool->sockaddr_url, pool->diff, have_longpoll ? "": "out", pool->has_gbt ? "GBT" : "LP", pool->rpc_user); } wclrtoeol(statuswin); - cg_mvwprintw(statuswin, 5, 0, " Block: %s... Diff:%s Started: %s Best share: %s ", + cg_mvwprintw(statuswin, 5, 0, "Block: %s... Diff:%s Started: %s Best share: %s ", prev_block, block_diff, blocktime, best_share); mvwhline(statuswin, 6, 0, '-', 80); mvwhline(statuswin, statusy - 1, 0, '-', 80); - cg_mvwprintw(statuswin, devcursor - 1, 1, "[P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit"); + cg_mvwprintw(statuswin, devcursor - 1, 0, "[P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit"); } static void adj_width(int var, int *length)