diff options
author | Alexander Tkachev | 2016-07-14 16:01:05 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | c431ae6d84be1ef73c44b84c58ee3d9edff3d5e3 (patch) | |
tree | 0a1a2a4ccfb0bfc603e62c9f7dbc06c05d577333 /backends/networking | |
parent | 85adefdb86e914a789a0db18c767c8ef5902f846 (diff) | |
download | scummvm-rg350-c431ae6d84be1ef73c44b84c58ee3d9edff3d5e3.tar.gz scummvm-rg350-c431ae6d84be1ef73c44b84c58ee3d9edff3d5e3.tar.bz2 scummvm-rg350-c431ae6d84be1ef73c44b84c58ee3d9edff3d5e3.zip |
CLOUD: Calculate FolderDownload download speed
Diffstat (limited to 'backends/networking')
-rw-r--r-- | backends/networking/curl/connectionmanager.cpp | 4 | ||||
-rw-r--r-- | backends/networking/curl/connectionmanager.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/backends/networking/curl/connectionmanager.cpp b/backends/networking/curl/connectionmanager.cpp index f7c8e2c92d..415151d40d 100644 --- a/backends/networking/curl/connectionmanager.cpp +++ b/backends/networking/curl/connectionmanager.cpp @@ -91,6 +91,10 @@ Common::String ConnectionManager::urlEncode(Common::String s) { return ""; } +uint32 ConnectionManager::getCloudRequestsPeriodInMicroseconds() { + return TIMER_INTERVAL * FRAMES_PER_SECOND / CLOUD_PERIOD; +} + //private goes here: void connectionsThread(void *ignored) { diff --git a/backends/networking/curl/connectionmanager.h b/backends/networking/curl/connectionmanager.h index 602f8930cd..0da5d5ad84 100644 --- a/backends/networking/curl/connectionmanager.h +++ b/backends/networking/curl/connectionmanager.h @@ -120,6 +120,8 @@ public: /** Return URL-encoded version of given string. */ Common::String urlEncode(Common::String s); + + static uint32 getCloudRequestsPeriodInMicroseconds(); }; /** Shortcut for accessing the connection manager. */ |