mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-08 21:14:14 +00:00
Two redraws in a row cause a crash in old libncurses so just do one redraw using the main window.
This commit is contained in:
parent
3060b97de3
commit
1aadfc580b
3
main.c
3
main.c
@ -3239,8 +3239,7 @@ static void *watchdog_thread(void *userdata)
|
|||||||
pthread_mutex_lock(&curses_lock);
|
pthread_mutex_lock(&curses_lock);
|
||||||
for (i = 0; i < mining_threads; i++)
|
for (i = 0; i < mining_threads; i++)
|
||||||
curses_print_status(i);
|
curses_print_status(i);
|
||||||
redrawwin(logwin);
|
redrawwin(mainwin);
|
||||||
redrawwin(statuswin);
|
|
||||||
pthread_mutex_unlock(&curses_lock);
|
pthread_mutex_unlock(&curses_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user