1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-27 06:41:15 +00:00

Merge pull request #375 from Zillode/reduce-load

Increase GUI update interval and log get requests (fixes #362)
This commit is contained in:
Zillode 2015-05-05 19:47:10 +02:00
commit de2c6320af
2 changed files with 3 additions and 1 deletions

View file

@ -69,6 +69,8 @@ public class GetTask extends AsyncTask<String, Void, String> {
get.addHeader(new BasicHeader(RestApi.HEADER_API_KEY, params[2])); get.addHeader(new BasicHeader(RestApi.HEADER_API_KEY, params[2]));
try { try {
Log.w(TAG, "Calling Rest API at " + fullUri);
HttpResponse response = httpclient.execute(get); HttpResponse response = httpclient.execute(get);
HttpEntity entity = response.getEntity(); HttpEntity entity = response.getEntity();

View file

@ -52,7 +52,7 @@ public class SyncthingService extends Service {
/** /**
* Interval in ms at which the GUI is updated (eg {@link com.nutomic.syncthingandroid.fragments.DrawerFragment}). * Interval in ms at which the GUI is updated (eg {@link com.nutomic.syncthingandroid.fragments.DrawerFragment}).
*/ */
public static final int GUI_UPDATE_INTERVAL = 1000; public static final int GUI_UPDATE_INTERVAL = 10000;
/** /**
* name of the public key file in the data directory. * name of the public key file in the data directory.