mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Add message about donation to startup.
This commit is contained in:
parent
47be27e86b
commit
5a4dabe233
6
main.c
6
main.c
@ -5736,6 +5736,12 @@ int main (int argc, char *argv[])
|
||||
if (thr_info_create(thr, NULL, reinit_gpu, thr))
|
||||
quit(1, "reinit_gpu thread create failed");
|
||||
|
||||
sleep(opt_log_interval);
|
||||
if (opt_donation > 0.0)
|
||||
applog(LOG_WARNING, "Donation is enabled at %.1f%% thank you :-)", opt_donation);
|
||||
else
|
||||
applog(LOG_WARNING, "Donation is disabled, please consider just 0.5%% :-(");
|
||||
|
||||
/* main loop - simply wait for workio thread to exit */
|
||||
pthread_join(thr_info[work_thr_id].pth, NULL);
|
||||
applog(LOG_INFO, "workio thread dead, exiting.");
|
||||
|
Loading…
Reference in New Issue
Block a user