1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00
This commit is contained in:
Cedric Beust 2017-01-19 15:54:31 -08:00
parent d32a84256c
commit fa2ef81e2c

View file

@ -6,6 +6,7 @@ import com.beust.kobalt.TaskResult
import com.beust.kobalt.misc.NamedThreadFactory
import com.beust.kobalt.misc.error
import com.beust.kobalt.misc.kobaltLog
import com.beust.kobalt.misc.warn
import com.google.common.collect.HashMultimap
import java.lang.reflect.InvocationTargetException
import java.util.*
@ -351,8 +352,13 @@ class DynamicGraphExecutor<T>(val graph : DynamicGraph<T>, val factory: IThreadW
if (line.start) {
projectStart[line.name] = line.timestamp
} else {
duration = " (" + ((line.timestamp - projectStart[line.name]!!) / 1000)
.toInt().toString() + ")"
val projectStart = projectStart[line.name]
if (projectStart != null) {
duration = " (" + ((line.timestamp - projectStart) / 1000)
.toInt().toString() + ")"
} else {
warn("Couldn't determine project start: " + line.name)
}
}
row.add((line.name + duration))
} else {