From 4db316a432ce3d4fb280f64b64d3f1d0f3295b39 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Aug 2008 18:32:17 +0000 Subject: General: Upped default verIDBufferSize Because of the increase in possible Verification ID values, it will be even less likely to have a repeat, so the number that are buffered is being increased. A test was run to find repeats if 10000 numbers were generated between 1 and 2147483647 and a repeat was found only once at the 8500th number, the rest of the tests (20 others) passed successfully. Refs #37 --- client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.java | 4 ++-- client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/trunk/src/com') diff --git a/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.java b/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.java index 14469ea..597aca8 100644 --- a/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.java +++ b/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.java @@ -22,14 +22,14 @@ public class AdvancedSettingsForm extends javax.swing.JDialog { SpinnerNumberModel sm = new SpinnerNumberModel(); sm.setValue(Integer.decode(Wrapper.getConfig("itemBufferSize"))); - sm.setMaximum(100); + sm.setMaximum(1000); sm.setMinimum(1); sm.setStepSize(1); jSpinner1.setModel(sm); SpinnerNumberModel sm2 = new SpinnerNumberModel(); sm2.setValue(Integer.decode(Wrapper.getConfig("verIDBufferSize"))); - sm2.setMaximum(10000); + sm2.setMaximum(100000); sm2.setMinimum(1); sm2.setStepSize(1); jSpinner2.setModel(sm2); diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java index 0a8287b..7133f6f 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java @@ -166,7 +166,7 @@ public class Step2 extends javax.swing.JDialog { Wrapper.setConfig("password", password); Wrapper.setConfig("centralServerURL", jTextField3.getText()); Wrapper.setConfig("itemBufferSize", "10"); - Wrapper.setConfig("verIDBufferSize", "100"); + Wrapper.setConfig("verIDBufferSize", "10000"); Wrapper.setConfig("nextFilterID", "0"); Wrapper.setConfig("ipCheckValue", "1"); Wrapper.setConfig("ipCheckUnit", "day"); -- cgit 1.4.1