mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #786 from PhenomRetroShare/Fix_RelaySettingValues
Fix Relay setting values
This commit is contained in:
commit
4d7bd833a9
@ -129,15 +129,15 @@ void RelayPage::load()
|
|||||||
uint32_t bandwidth;
|
uint32_t bandwidth;
|
||||||
rsDht->getRelayAllowance(RSDHT_RELAY_CLASS_FRIENDS, count, bandwidth);
|
rsDht->getRelayAllowance(RSDHT_RELAY_CLASS_FRIENDS, count, bandwidth);
|
||||||
whileBlocking(ui.noFriendSpinBox)->setValue(count);
|
whileBlocking(ui.noFriendSpinBox)->setValue(count);
|
||||||
whileBlocking(ui.bandFriendSpinBox)->setValue(bandwidth / 1000);
|
whileBlocking(ui.bandFriendSpinBox)->setValue(bandwidth / 1024);
|
||||||
|
|
||||||
rsDht->getRelayAllowance(RSDHT_RELAY_CLASS_FOF, count, bandwidth);
|
rsDht->getRelayAllowance(RSDHT_RELAY_CLASS_FOF, count, bandwidth);
|
||||||
whileBlocking(ui.noFOFSpinBox)->setValue(count);
|
whileBlocking(ui.noFOFSpinBox)->setValue(count);
|
||||||
whileBlocking(ui.bandFOFSpinBox)->setValue(bandwidth / 1000);
|
whileBlocking(ui.bandFOFSpinBox)->setValue(bandwidth / 1024);
|
||||||
|
|
||||||
rsDht->getRelayAllowance(RSDHT_RELAY_CLASS_GENERAL, count, bandwidth);
|
rsDht->getRelayAllowance(RSDHT_RELAY_CLASS_GENERAL, count, bandwidth);
|
||||||
whileBlocking(ui.noGeneralSpinBox)->setValue(count);
|
whileBlocking(ui.noGeneralSpinBox)->setValue(count);
|
||||||
whileBlocking(ui.bandGeneralSpinBox)->setValue(bandwidth / 1000);
|
whileBlocking(ui.bandGeneralSpinBox)->setValue(bandwidth / 1024);
|
||||||
|
|
||||||
updateTotals();
|
updateTotals();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user