1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #357 from dubslow/master

Two tweaks
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-10-01 02:01:28 +02:00
commit 63cb2361a1
2 changed files with 5 additions and 5 deletions

View File

@ -225,9 +225,9 @@ void Core::start()
* 5 disconnected; 4 were DCd for less than 20 ticks, while the 5th was ~50 ticks. * 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. * 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' * 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() void Core::process()
{ {
@ -284,7 +284,7 @@ void Core::bootstrapDht()
qDebug() << "Core: Bootstraping to the DHT ..."; qDebug() << "Core: Bootstraping to the DHT ...";
int i=0; 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]; const Settings::DhtServer& dhtServer = dhtServerList[j % listSize];
if (tox_bootstrap_from_address(tox, dhtServer.address.toLatin1().data(), if (tox_bootstrap_from_address(tox, dhtServer.address.toLatin1().data(),

View File

@ -3115,13 +3115,13 @@ QSplitter:handle{
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>60</height> <height>57</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>60</height> <height>57</height>
</size> </size>
</property> </property>
<property name="mouseTracking"> <property name="mouseTracking">