/** * Update the metrics source gauge for what the current transfer rate * is. * @param updateWrite If true, update the write (upload) counter. * Otherwise update the read (download) counter. * @param bytesPerSecond The number of bytes per second we're seeing. */ private void updateBytesTransferRate(boolean updateWrite, long bytesPerSecond) { if (updateWrite) { instrumentation.currentUploadBytesPerSecond(bytesPerSecond); } else { instrumentation.currentDownloadBytesPerSecond(bytesPerSecond); } }
/** * Update the metrics source gauge for what the current transfer rate * is. * @param updateWrite If true, update the write (upload) counter. * Otherwise update the read (download) counter. * @param bytesPerSecond The number of bytes per second we're seeing. */ private void updateBytesTransferRate(boolean updateWrite, long bytesPerSecond) { if (updateWrite) { instrumentation.currentUploadBytesPerSecond(bytesPerSecond); } else { instrumentation.currentDownloadBytesPerSecond(bytesPerSecond); } }