diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-04-26 21:52:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 21:52:44 +0100 |
commit | 068b6fa329811256055c044fee5092b7e0638d1a (patch) | |
tree | f02c7a42be47bcbd4ef0ffae7ab1b753fafc75e3 /cli-miner.cpp | |
parent | e58a09f63b93eac23ec8af249757eec4dec52bbc (diff) | |
parent | 620cd678faa27800c6f67b869d314d350b72f1f9 (diff) | |
download | xmr-stak-068b6fa329811256055c044fee5092b7e0638d1a.zip xmr-stak-068b6fa329811256055c044fee5092b7e0638d1a.tar.gz |
Merge pull request #86 from fireice-uk/dev
Merge into master
Diffstat (limited to 'cli-miner.cpp')
-rw-r--r-- | cli-miner.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/cli-miner.cpp b/cli-miner.cpp index 9eec369..38fb720 100644 --- a/cli-miner.cpp +++ b/cli-miner.cpp @@ -26,7 +26,11 @@ #include "jconf.h" #include "console.h" #include "donate-level.h" -#include "httpd.h" +#include "autoAdjust.hpp" + +#ifndef CONF_NO_HTTPD +# include "httpd.h" +#endif #include <stdlib.h> #include <stdio.h> @@ -96,6 +100,14 @@ int main(int argc, char *argv[]) return 0; } + if(jconf::inst()->NeedsAutoconf()) + { + autoAdjust adjust; + adjust.printConfig(); + win_exit(); + return 0; + } + if (!minethd::self_test()) { win_exit(); @@ -109,6 +121,7 @@ int main(int argc, char *argv[]) return 0; } +#ifndef CONF_NO_HTTPD if(jconf::inst()->GetHttpdPort() != 0) { if (!httpd::inst()->start_daemon()) @@ -117,11 +130,12 @@ int main(int argc, char *argv[]) return 0; } } +#endif printer::inst()->print_str("-------------------------------------------------------------------\n"); printer::inst()->print_str("XMR-Stak-CPU mining software, CPU Version.\n"); - printer::inst()->print_str("Based on CPU mining code by wolf9466 (heavily optimized by myself).\n"); - printer::inst()->print_str("Brought to you by fireice_uk under GPLv3.\n\n"); + printer::inst()->print_str("Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).\n"); + printer::inst()->print_str("Brought to you by fireice_uk and psychocrypt under GPLv3.\n\n"); char buffer[64]; snprintf(buffer, sizeof(buffer), "Configurable dev donation level is set to %.1f %%\n\n", fDevDonationLevel * 100.0); printer::inst()->print_str(buffer); |