From a69178ca7310eef4a3f35ed7da6fe9bdf907ae5c Mon Sep 17 00:00:00 2001 From: Andrzej Cichocki Date: Fri, 23 Jun 2017 17:49:07 +0100 Subject: [PATCH] Fix logging that always says zero (#895) --- test-utils/src/main/kotlin/net/corda/testing/driver/Driver.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-utils/src/main/kotlin/net/corda/testing/driver/Driver.kt b/test-utils/src/main/kotlin/net/corda/testing/driver/Driver.kt index 8dca081231..593b59af7b 100644 --- a/test-utils/src/main/kotlin/net/corda/testing/driver/Driver.kt +++ b/test-utils/src/main/kotlin/net/corda/testing/driver/Driver.kt @@ -351,7 +351,7 @@ fun poll( executorService.schedule(task@ { counter++ if (counter == warnCount) { - log.warn("Been polling $pollName for ${pollInterval.seconds * warnCount} seconds...") + log.warn("Been polling $pollName for ${pollInterval.multipliedBy(warnCount.toLong()).seconds} seconds...") } val result = try { check()