Console: Fix number formatting (tickets #1912, #1913, #2126)

This commit is contained in:
zzz
2018-02-01 14:37:11 +00:00
parent 81713a0cab
commit a021e0d31f
15 changed files with 168 additions and 79 deletions

View File

@@ -973,19 +973,26 @@ public class Router implements RouterClock.ClockShiftListener {
@Deprecated
public static final char CAPABILITY_NEW_TUNNEL = 'T';
/** @since 0.9.33 */
/** In binary (1024) Kbytes
* @since 0.9.33 */
public static final int MIN_BW_K = 0;
/** @since 0.9.33 */
/** In binary (1024) Kbytes
* @since 0.9.33 */
public static final int MIN_BW_L = 12;
/** @since 0.9.33 */
/** In binary (1024) Kbytes
* @since 0.9.33 */
public static final int MIN_BW_M = 48;
/** @since 0.9.33 */
/** In binary (1024) Kbytes
* @since 0.9.33 */
public static final int MIN_BW_N = 64;
/** @since 0.9.33 */
/** In binary (1024) Kbytes
* @since 0.9.33 */
public static final int MIN_BW_O = 128;
/** @since 0.9.33 */
/** In binary (1024) Kbytes
* @since 0.9.33 */
public static final int MIN_BW_P = 256;
/** @since 0.9.33 */
/** In binary (1024) Kbytes
* @since 0.9.33 */
public static final int MIN_BW_X = 2000;
/**

View File

@@ -133,16 +133,28 @@ public class FIFOBandwidthLimiter {
/** @return smoothed 15 second rate */
public float getReceiveBps15s() { return _recvBps15s; }
/** The configured maximum, not the current rate */
/**
* The configured maximum, not the current rate.
* In binary K, i.e. rate / 1024.
*/
public int getOutboundKBytesPerSecond() { return _refiller.getOutboundKBytesPerSecond(); }
/** The configured maximum, not the current rate */
/**
* The configured maximum, not the current rate.
* In binary K, i.e. rate / 1024.
*/
public int getInboundKBytesPerSecond() { return _refiller.getInboundKBytesPerSecond(); }
/** The configured maximum, not the current rate */
/**
* The configured maximum, not the current rate.
* In binary K, i.e. rate / 1024.
*/
public int getOutboundBurstKBytesPerSecond() { return _refiller.getOutboundBurstKBytesPerSecond(); }
/** The configured maximum, not the current rate */
/**
* The configured maximum, not the current rate.
* In binary K, i.e. rate / 1024.
*/
public int getInboundBurstKBytesPerSecond() { return _refiller.getInboundBurstKBytesPerSecond(); }
public synchronized void reinitialize() {