CLOUD: Calculate FolderDownload download speed
This commit is contained in:
parent
85adefdb86
commit
c431ae6d84
9 changed files with 47 additions and 6 deletions
|
@ -259,6 +259,15 @@ uint64 Storage::getDownloadTotalBytesNumber() {
|
|||
return result;
|
||||
}
|
||||
|
||||
uint64 Storage::getDownloadSpeed() {
|
||||
uint64 result = 0;
|
||||
_runningRequestsMutex.lock();
|
||||
if (_downloadFolderRequest)
|
||||
result = _downloadFolderRequest->getDownloadSpeed();
|
||||
_runningRequestsMutex.unlock();
|
||||
return result;
|
||||
}
|
||||
|
||||
Common::String Storage::getDownloadRemoteDirectory() {
|
||||
Common::String result = "";
|
||||
_runningRequestsMutex.lock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue