mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-09 14:28:12 +00:00
Fix for non curses build.
This commit is contained in:
parent
e503fadb78
commit
c5b10a6cf3
10
cgminer.c
10
cgminer.c
@ -2260,6 +2260,11 @@ static void get_statline(char *buf, size_t bufsiz, struct cgpu_info *cgpu)
|
|||||||
cgpu->drv->get_statline(buf, bufsiz, cgpu);
|
cgpu->drv->get_statline(buf, bufsiz, cgpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool shared_strategy(void)
|
||||||
|
{
|
||||||
|
return (pool_strategy == POOL_LOADBALANCE || pool_strategy == POOL_BALANCE);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_CURSES
|
#ifdef HAVE_CURSES
|
||||||
#define CURBUFSIZ 256
|
#define CURBUFSIZ 256
|
||||||
#define cg_mvwprintw(win, y, x, fmt, ...) do { \
|
#define cg_mvwprintw(win, y, x, fmt, ...) do { \
|
||||||
@ -2273,11 +2278,6 @@ static void get_statline(char *buf, size_t bufsiz, struct cgpu_info *cgpu)
|
|||||||
wprintw(win, "%s", tmp42); \
|
wprintw(win, "%s", tmp42); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static bool shared_strategy(void)
|
|
||||||
{
|
|
||||||
return (pool_strategy == POOL_LOADBALANCE || pool_strategy == POOL_BALANCE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Must be called with curses mutex lock held and curses_active */
|
/* Must be called with curses mutex lock held and curses_active */
|
||||||
static void curses_print_status(void)
|
static void curses_print_status(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user