super("swarm_average_speed", ALIGN_TRAIL, POSITION_INVISIBLE, 70, sTableID); setRefreshInterval(INTERVAL_LIVE); setMinWidthAuto(true);
long speed = -1; DownloadManager dm = (DownloadManager)cell.getDataSource(); if( dm != null ) { speed = dm.getStats().getTotalAveragePerPeer(); } if( !cell.setSortValue( speed ) && cell.isValid() ) { return; } if( speed < 0 ) { cell.setText( "" ); } else { cell.setText( DisplayFormatters.formatByteCountToKiBEtcPerSec( speed ) ); }