Console: Show and set burst bandwidth on /config (ticket #2123)

Better error handling
Comment out some unused things, misc. cleanups
This commit is contained in:
zzz
2018-01-06 16:15:15 +00:00
parent b8f17c7ac4
commit f32d3aaef5
4 changed files with 68 additions and 36 deletions

View File

@@ -233,6 +233,8 @@ public class FIFOBandwidthRefiller implements Runnable {
if (_inboundBurstKBytesPerSecond <= 0)
_inboundBurstKBytesPerSecond = DEFAULT_INBOUND_BURST_BANDWIDTH;
if (_inboundBurstKBytesPerSecond < _inboundKBytesPerSecond)
_inboundBurstKBytesPerSecond = _inboundKBytesPerSecond;
_limiter.setInboundBurstKBps(_inboundBurstKBytesPerSecond);
}
@@ -250,6 +252,8 @@ public class FIFOBandwidthRefiller implements Runnable {
if (_outboundBurstKBytesPerSecond <= 0)
_outboundBurstKBytesPerSecond = DEFAULT_OUTBOUND_BURST_BANDWIDTH;
if (_outboundBurstKBytesPerSecond < _outboundKBytesPerSecond)
_outboundBurstKBytesPerSecond = _outboundKBytesPerSecond;
_limiter.setOutboundBurstKBps(_outboundBurstKBytesPerSecond);
}