Default Constructor super("maxupspeed", ALIGN_TRAIL, POSITION_INVISIBLE, 35, table_id); setRefreshInterval(INTERVAL_LIVE);
super("maxupspeed", ALIGN_TRAIL, POSITION_INVISIBLE, 35, table_id); setRefreshInterval(INTERVAL_LIVE);
PEPeer peer = (PEPeer)cell.getDataSource(); long value = (peer == null) ? 0 : peer.getUploadRateLimitBytesPerSecond(); if (!cell.setSortValue(value) && cell.isValid()) return; if(value == -1) { cell.setText(MessageText.getString("MyTorrents.items.UpSpeedLimit.disabled")); } else if(value == 0) { cell.setText(Constants.INFINITY_STRING); } else { cell.setText(DisplayFormatters.formatByteCountToKiBEtcPerSec(value)); }