Commit 5a4dabe23381d95b1c9de260f5cefb43d2f2e5ca

Con Kolivas 2011-09-27T13:40:03

Add message about donation to startup.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/main.c b/main.c
index 4cae027..91c3a2b 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.");