From 5a4dabe23381d95b1c9de260f5cefb43d2f2e5ca Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 27 Sep 2011 13:40:03 +1000 Subject: [PATCH] Add message about donation to startup. --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.c b/main.c index 4cae027a..91c3a2bb 100644 --- a/main.c +++ b/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.");