From 631486ae748d8ba85068688685da13df746feafa Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 1 Nov 2019 18:39:25 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=8E=A8=20Use=20time=20units=20for=20cleare?= =?utf8?q?r=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt index b7a48dd..1e83cd7 100644 --- a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt @@ -20,6 +20,7 @@ package net.pterodactylus.sone.freenet.wot import com.google.common.eventbus.* import com.google.inject.* import net.pterodactylus.util.service.* +import java.util.concurrent.TimeUnit.* import java.util.logging.* import java.util.logging.Logger.* @@ -71,7 +72,7 @@ class IdentityManagerImpl @Inject constructor( } /* wait a minute before checking again. */ - sleep((60 * 1000).toLong()) + sleep(SECONDS.toMillis(60)) } } -- 2.7.4