mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added QueueSize to displayed information.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5246 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e0af833f47
commit
3dfbf128d8
@ -138,13 +138,15 @@ void BwCtrlWindow::updateBandwidth()
|
||||
|
||||
#define PTW_COL_IN_RATE 2
|
||||
#define PTW_COL_IN_MAX 3
|
||||
#define PTW_COL_IN_ALLOC 4
|
||||
#define PTW_COL_IN_ALLOC_SENT 5
|
||||
#define PTW_COL_IN_QUEUE 4
|
||||
#define PTW_COL_IN_ALLOC 5
|
||||
#define PTW_COL_IN_ALLOC_SENT 6
|
||||
|
||||
#define PTW_COL_OUT_RATE 6
|
||||
#define PTW_COL_OUT_MAX 7
|
||||
#define PTW_COL_OUT_ALLOC 8
|
||||
#define PTW_COL_OUT_ALLOC_SENT 9
|
||||
#define PTW_COL_OUT_RATE 7
|
||||
#define PTW_COL_OUT_MAX 8
|
||||
#define PTW_COL_OUT_QUEUE 9
|
||||
#define PTW_COL_OUT_ALLOC 10
|
||||
#define PTW_COL_OUT_ALLOC_SENT 11
|
||||
|
||||
peerTreeWidget->clear();
|
||||
|
||||
@ -165,11 +167,13 @@ void BwCtrlWindow::updateBandwidth()
|
||||
|
||||
item -> setData(PTW_COL_IN_RATE, Qt::DisplayRole, QString::number(totalRates.mRateIn));
|
||||
item -> setData(PTW_COL_IN_MAX, Qt::DisplayRole, QString::number(totalRates.mRateMaxIn));
|
||||
item -> setData(PTW_COL_IN_QUEUE, Qt::DisplayRole, QString::number(totalRates.mQueueIn));
|
||||
item -> setData(PTW_COL_IN_ALLOC, Qt::DisplayRole, QString("N/A"));
|
||||
item -> setData(PTW_COL_IN_ALLOC_SENT, Qt::DisplayRole, QString("N/A"));
|
||||
|
||||
item -> setData(PTW_COL_OUT_RATE, Qt::DisplayRole, QString::number(totalRates.mRateOut));
|
||||
item -> setData(PTW_COL_OUT_MAX, Qt::DisplayRole, QString::number(totalRates.mRateMaxOut));
|
||||
item -> setData(PTW_COL_OUT_QUEUE, Qt::DisplayRole, QString::number(totalRates.mQueueOut));
|
||||
item -> setData(PTW_COL_OUT_ALLOC, Qt::DisplayRole, QString("N/A"));
|
||||
item -> setData(PTW_COL_OUT_ALLOC_SENT, Qt::DisplayRole, QString("N/A"));
|
||||
|
||||
@ -206,11 +210,13 @@ void BwCtrlWindow::updateBandwidth()
|
||||
|
||||
peer_item -> setData(PTW_COL_IN_RATE, Qt::DisplayRole, QString::number(it->second.mRateIn));
|
||||
peer_item -> setData(PTW_COL_IN_MAX, Qt::DisplayRole, QString::number(it->second.mRateMaxIn));
|
||||
peer_item -> setData(PTW_COL_IN_QUEUE, Qt::DisplayRole, QString::number(it->second.mQueueIn));
|
||||
peer_item -> setData(PTW_COL_IN_ALLOC, Qt::DisplayRole, QString::number(it->second.mAllocIn));
|
||||
peer_item -> setData(PTW_COL_IN_ALLOC_SENT, Qt::DisplayRole, QString::number(now - it->second.mAllocTs));
|
||||
|
||||
peer_item -> setData(PTW_COL_OUT_RATE, Qt::DisplayRole, QString::number(it->second.mRateOut));
|
||||
peer_item -> setData(PTW_COL_OUT_MAX, Qt::DisplayRole, QString::number(it->second.mRateMaxOut));
|
||||
peer_item -> setData(PTW_COL_OUT_QUEUE, Qt::DisplayRole, QString::number(it->second.mQueueOut));
|
||||
peer_item -> setData(PTW_COL_OUT_ALLOC, Qt::DisplayRole, QString::number(it->second.mAllowedOut));
|
||||
peer_item -> setData(PTW_COL_OUT_ALLOC_SENT, Qt::DisplayRole, QString::number(now - it->second.mAllowedTs));
|
||||
|
||||
|
@ -54,6 +54,11 @@
|
||||
<string>InMax (KB/s)</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>InQueue</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>InAllocated (KB/s)</string>
|
||||
@ -74,6 +79,11 @@
|
||||
<string>OutMax (KB/s)</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>OutQueue</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>OutAllowed (KB/s)</string>
|
||||
|
Loading…
Reference in New Issue
Block a user