* show donation reminder 20% of the time instead of 10% of the time

This commit is contained in:
Reinhard Pointner 2015-04-17 09:41:39 +00:00
parent 73baf8ee45
commit f1ad8c8cdf
1 changed files with 2 additions and 2 deletions

View File

@ -239,8 +239,8 @@ public class Main {
// make sure any long running operations are done now and not later on the shutdownhook thread // make sure any long running operations are done now and not later on the shutdownhook thread
HistorySpooler.getInstance().commit(); HistorySpooler.getInstance().commit();
// show donation / review reminders to power users (more than 2000 renames) but at most 10% of the time as to not overly annoy user that simply don't want to donate // show donation / review reminders to power users (more than 2000 renames) but at most 20% of the time as to not overly annoy user that simply don't want to donate
float chance = 0.1f; float chance = 0.2f;
int renameCount = HistorySpooler.getInstance().getPersistentHistoryTotalSize(); int renameCount = HistorySpooler.getInstance().getPersistentHistoryTotalSize();
if (renameCount > 2000 && Math.random() < chance) { if (renameCount > 2000 && Math.random() < chance) {