Changed database cleaning constants to suit smaller devices.

This commit is contained in:
akwizgran
2013-03-01 22:13:08 +00:00
parent 1ce1cf6f63
commit 71e1dd9acb
5 changed files with 18 additions and 18 deletions

View File

@@ -44,4 +44,10 @@ public interface MessagingConstants {
/** The length of a message's random salt in bytes. */
int SALT_LENGTH = 8;
/**
* The timestamp of the oldest message in the database is rounded using
* this modulus to avoid revealing the presence of any particular message.
*/
long RETENTION_MODULUS = 60 * 60 * 1000; // 1 hour
}