1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-24 11:51:30 +00:00

Use TimeUnit for update interval.

This commit is contained in:
Felix Ableitner 2016-03-20 18:03:12 +01:00
parent e7433fa392
commit 494f98ee5c

View file

@ -37,6 +37,7 @@ import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.Set; import java.util.Set;
import java.util.concurrent.TimeUnit;
/** /**
* Holds the native syncthing instance and provides an API to access it. * Holds the native syncthing instance and provides an API to access it.
@ -60,7 +61,7 @@ public class SyncthingService extends Service implements
/** /**
* 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 = 10000; public static final long GUI_UPDATE_INTERVAL = TimeUnit.SECONDS.toMillis(10);
/** /**
* name of the public key file in the data directory. * name of the public key file in the data directory.