From 9d8e4b28f2b5e1c916892cb39371953255e669e9 Mon Sep 17 00:00:00 2001 From: dubslow Date: Sat, 13 Sep 2014 00:55:21 -0500 Subject: [PATCH 1/2] first thing's first, gotta placate the ocd --- mainwindow.ui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.ui b/mainwindow.ui index 385ecb489..300cc60c3 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -3115,13 +3115,13 @@ QSplitter:handle{ 0 - 60 + 57 16777215 - 60 + 57 From 3aa1c7fdedf143243f5cf2b8588a57ee3db9e99f Mon Sep 17 00:00:00 2001 From: dubslow Date: Tue, 30 Sep 2014 18:50:12 -0500 Subject: [PATCH 2/2] bootstrap tweaks --- core.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core.cpp b/core.cpp index d73b17683..15cb84a7b 100644 --- a/core.cpp +++ b/core.cpp @@ -225,9 +225,9 @@ void Core::start() * 5 disconnected; 4 were DCd for less than 20 ticks, while the 5th was ~50 ticks. * So I set the tolerance here at 25, and initial DCs should be very rare now. * This should be able to go to 50 or 100 without affecting legitimate disconnects' - * downtime, but lets be conservative for now. + * downtime, but lets be conservative for now. Edit: now 40. */ -#define CORE_DISCONNECT_TOLERANCE 25 +#define CORE_DISCONNECT_TOLERANCE 40 void Core::process() { @@ -284,7 +284,7 @@ void Core::bootstrapDht() qDebug() << "Core: Bootstraping to the DHT ..."; int i=0; - while (i < 4) + while (i < 2) // i think the more we bootstrap, the more we jitter because the more we overwrite nodes { const Settings::DhtServer& dhtServer = dhtServerList[j % listSize]; if (tox_bootstrap_from_address(tox, dhtServer.address.toLatin1().data(),