Default Constructor super("uploadspeed", ALIGN_TRAIL, POSITION_LAST, 65, table_id); setRefreshInterval(INTERVAL_LIVE);
super("uploadspeed", ALIGN_TRAIL, POSITION_LAST, 65, table_id); setRefreshInterval(INTERVAL_LIVE);
PEPeer peer = (PEPeer)cell.getDataSource(); long data_value = 0; long prot_value = 0; if ( peer != null ){ data_value = peer.getStats().getDataSendRate(); prot_value = peer.getStats().getProtocolSendRate(); } long sort_value = ( data_value<<32 ) + prot_value; if (!cell.setSortValue(sort_value) && cell.isValid()) return; cell.setText(DisplayFormatters.formatDataProtByteCountToKiBEtcPerSec(data_value,prot_value));