Fix logging that always says zero (#895)

This commit is contained in:
Andrzej Cichocki 2017-06-23 17:49:07 +01:00 committed by GitHub
parent cd694b898f
commit a69178ca73

View File

@ -351,7 +351,7 @@ fun <A> 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()