mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-08 21:14:14 +00:00
Merge pull request #160 from luke-jr/bugfix_realquiet_2
Bugfix: Skip enabling curses, if --real-quiet or listing devices
This commit is contained in:
commit
7f64adc473
@ -4458,6 +4458,9 @@ int main (int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_CURSES
|
#ifdef HAVE_CURSES
|
||||||
|
if (opt_realquiet || devices_enabled == -1)
|
||||||
|
use_curses = false;
|
||||||
|
|
||||||
if (use_curses)
|
if (use_curses)
|
||||||
enable_curses();
|
enable_curses();
|
||||||
#endif
|
#endif
|
||||||
@ -4566,9 +4569,6 @@ int main (int argc, char *argv[])
|
|||||||
|
|
||||||
#ifdef HAVE_CURSES
|
#ifdef HAVE_CURSES
|
||||||
check_winsizes();
|
check_winsizes();
|
||||||
|
|
||||||
if (opt_realquiet)
|
|
||||||
use_curses = false;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!total_pools) {
|
if (!total_pools) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user