CLOUD: Calculate FolderDownload download speed

This commit is contained in:
Alexander Tkachev 2016-07-14 16:01:05 +06:00
parent 85adefdb86
commit c431ae6d84
9 changed files with 47 additions and 6 deletions

View file

@ -349,13 +349,19 @@ double CloudManager::getDownloadingProgress() {
uint64 CloudManager::getDownloadBytesNumber() {
Storage *storage = getCurrentStorage();
if (storage) return storage->getDownloadBytesNumber();
return 1;
return 0;
}
uint64 CloudManager::getDownloadTotalBytesNumber() {
Storage *storage = getCurrentStorage();
if (storage) return storage->getDownloadTotalBytesNumber();
return 1;
return 0;
}
uint64 CloudManager::getDownloadSpeed() {
Storage *storage = getCurrentStorage();
if (storage) return storage->getDownloadSpeed();
return 0;
}
Common::String CloudManager::getDownloadRemoteDirectory() {