From a1b5df7c1861cf2b2f97dc9339e3155e176d0cf8 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 24 Nov 2014 09:25:08 -0500 Subject: [PATCH] Fix time units in ldap sync log message --- src/main/java/com/gitblit/auth/LdapAuthProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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."); -- 2.39.5