agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/model/TransferTask.java
/**
	 * Calculates the transfer rate by using the bytes transferred divided by the 
	 * elapsed time in seconds.
	 *  
	 * @return transfer rate in bytes per second
	 */
Calculates the transfer rate by using the bytes transferred divided by the
elapsed time in seconds.

@return transfer rate in bytes per second
Calculates the transfer rate by using the bytes transferred divided by the elapsed time in seconds . @return transfer rate in bytes per second
public double calculateTransferRate() 
	{
		double start = getStartTime() == null ? getCreated().getTime() : getStartTime().getTime();
		double end = (getEndTime() == null || getStatus() == TransferStatusType.TRANSFERRING) ? System.currentTimeMillis() : getEndTime().getTime();
		double milliseconds = end - start;
		if (milliseconds > 0) {
			return getBytesTransferred() / (milliseconds/1000.0);
		} else {
			return 0.0;
		}
	}
public double calculateTransferRate ( ) { double start = getStartTime ( ) == null ? getCreated ( ) . getTime ( ) : getStartTime ( ) . getTime ( ) ; double end = ( getEndTime ( ) == null || getStatus ( ) == TransferStatusType . TRANSFERRING ) ? System . currentTimeMillis ( ) : getEndTime ( ) . getTime ( ) ; double milliseconds = end - start ; if ( milliseconds > 0 ) { return getBytesTransferred ( ) / ( milliseconds / 1000.0 ) ; } else { return 0.0 ; } }
Calculates the transfer rate by using the bytes transferred divided by the
 elapsed time in seconds.
Calculates the transfer rate by using the bytes transferred divided by the elapsed time in seconds .