diff options
author | James Moger <james.moger@gitblit.com> | 2014-11-24 09:25:08 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-11-24 09:25:08 -0500 |
commit | a1b5df7c1861cf2b2f97dc9339e3155e176d0cf8 (patch) | |
tree | f5e43e77542d3d734a9434fdef9464157f1b03d4 /src/main/java/com/gitblit/auth | |
parent | 0001f203daf794fd6a6d3bc49f6e474aa1459f74 (diff) | |
download | gitblit-a1b5df7c1861cf2b2f97dc9339e3155e176d0cf8.tar.gz gitblit-a1b5df7c1861cf2b2f97dc9339e3155e176d0cf8.zip |
Fix time units in ldap sync log message
Diffstat (limited to 'src/main/java/com/gitblit/auth')
-rw-r--r-- | src/main/java/com/gitblit/auth/LdapAuthProvider.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/auth/LdapAuthProvider.java b/src/main/java/com/gitblit/auth/LdapAuthProvider.java index 6c97ddf9..cc772e7b 100644 --- a/src/main/java/com/gitblit/auth/LdapAuthProvider.java +++ b/src/main/java/com/gitblit/auth/LdapAuthProvider.java @@ -617,7 +617,8 @@ public class LdapAuthProvider extends UsernamePasswordAuthenticationProvider { if (ldapSyncService.isReady()) { long ldapSyncPeriod = getSynchronizationPeriodInMilliseconds(); int delay = 1; - logger.info("Ldap sync service will update users and groups every {} minutes.", ldapSyncPeriod); + logger.info("Ldap sync service will update users and groups every {} minutes.", + TimeUnit.MILLISECONDS.toMinutes(ldapSyncPeriod)); scheduledExecutorService.scheduleAtFixedRate(ldapSyncService, delay, ldapSyncPeriod, TimeUnit.MILLISECONDS); } else { logger.info("Ldap sync service is disabled."); |