From cd41d45fd219f35ef6f85b718de6ab4c762d5282 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 2 Mar 2013 10:44:42 +0000 Subject: [PATCH] * 1/100 chance of donation reminder --- source/net/sourceforge/filebot/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/Main.java b/source/net/sourceforge/filebot/Main.java index 914437a2..4334c439 100644 --- a/source/net/sourceforge/filebot/Main.java +++ b/source/net/sourceforge/filebot/Main.java @@ -225,7 +225,7 @@ public class Main { int donateStep = 10000; int usage = history.totalSize(); - if (usage / donateStep > donateLv || new Random().nextInt(1000) == 777) { + if (usage / donateStep > donateLv || new Random().nextInt(100) == 42) { persistentDonateLv.setValue(String.valueOf(Math.max(donateLv + 1, usage / donateStep))); String message = String.format(Locale.ROOT, "

Thank you for using FileBot!


It has taken many nights to develop this application. If you enjoy using it,
please consider a donation to the author of this software. It will help to
make FileBot even better!

You've renamed %,d files.


", history.totalSize());