CLOUD: Calculate FolderDownload download speed
This commit is contained in:
parent
85adefdb86
commit
c431ae6d84
9 changed files with 47 additions and 6 deletions
|
@ -40,7 +40,7 @@ class FolderDownloadRequest: public Networking::Request, public GUI::CommandSend
|
|||
Request *_workingRequest;
|
||||
bool _ignoreCallback;
|
||||
uint32 _totalFiles;
|
||||
uint64 _downloadedBytes, _totalBytes;
|
||||
uint64 _downloadedBytes, _totalBytes, _wasDownloadedBytes, _currentDownloadSpeed;
|
||||
|
||||
void start();
|
||||
void directoryListedCallback(Storage::ListDirectoryResponse response);
|
||||
|
@ -65,6 +65,9 @@ public:
|
|||
/** Returns a total number of bytes to download. */
|
||||
uint64 getTotalBytesToDownload() const;
|
||||
|
||||
/** Returns average download speed for the last second. */
|
||||
uint64 getDownloadSpeed() const;
|
||||
|
||||
/** Returns remote directory path. */
|
||||
Common::String getRemotePath() { return _remoteDirectoryPath; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue