diff options
Diffstat (limited to 'backends/cloud/storage.cpp')
-rw-r--r-- | backends/cloud/storage.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/cloud/storage.cpp b/backends/cloud/storage.cpp index c9843d6188..c20ad865ad 100644 --- a/backends/cloud/storage.cpp +++ b/backends/cloud/storage.cpp @@ -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(); |