mirror of
https://github.com/corda/corda.git
synced 2024-12-30 01:39:04 +00:00
Fix logging that always says zero (#895)
This commit is contained in:
parent
cd694b898f
commit
a69178ca73
@ -351,7 +351,7 @@ fun <A> poll(
|
|||||||
executorService.schedule(task@ {
|
executorService.schedule(task@ {
|
||||||
counter++
|
counter++
|
||||||
if (counter == warnCount) {
|
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 {
|
val result = try {
|
||||||
check()
|
check()
|
||||||
|
Loading…
Reference in New Issue
Block a user