Default Constructor super("maxdownspeed", ALIGN_TRAIL, POSITION_INVISIBLE, 35, sTableID); setRefreshInterval(INTERVAL_LIVE); setMinWidthAuto(true);
super("maxdownspeed", ALIGN_TRAIL, POSITION_INVISIBLE, 35, sTableID); setRefreshInterval(INTERVAL_LIVE); setMinWidthAuto(true);
DownloadManager dm = (DownloadManager)cell.getDataSource(); long value = (dm == null) ? 0 : dm.getStats().getDownloadRateLimitBytesPerSecond(); if (!cell.setSortValue(value) && cell.isValid()) return; if(value == -1) { cell.setText(MessageText.getString("MyTorrents.items.DownSpeedLimit.disabled")); } else if(value == 0) { cell.setText(Constants.INFINITY_STRING); } else { cell.setText(DisplayFormatters.formatByteCountToKiBEtcPerSec(value)); }