From c431ae6d84be1ef73c44b84c58ee3d9edff3d5e3 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Thu, 14 Jul 2016 16:01:05 +0600 Subject: CLOUD: Calculate FolderDownload download speed --- backends/networking/curl/connectionmanager.cpp | 4 ++++ backends/networking/curl/connectionmanager.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'backends/networking') 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. */ -- cgit v1.2.3