1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -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.NamedThreadFactory
import com.beust.kobalt.misc.error import com.beust.kobalt.misc.error
import com.beust.kobalt.misc.kobaltLog import com.beust.kobalt.misc.kobaltLog
import com.beust.kobalt.misc.warn
import com.google.common.collect.HashMultimap import com.google.common.collect.HashMultimap
import java.lang.reflect.InvocationTargetException import java.lang.reflect.InvocationTargetException
import java.util.* import java.util.*
@ -351,8 +352,13 @@ class DynamicGraphExecutor<T>(val graph : DynamicGraph<T>, val factory: IThreadW
if (line.start) { if (line.start) {
projectStart[line.name] = line.timestamp projectStart[line.name] = line.timestamp
} else { } else {
duration = " (" + ((line.timestamp - projectStart[line.name]!!) / 1000) val projectStart = projectStart[line.name]
.toInt().toString() + ")" if (projectStart != null) {
duration = " (" + ((line.timestamp - projectStart) / 1000)
.toInt().toString() + ")"
} else {
warn("Couldn't determine project start: " + line.name)
}
} }
row.add((line.name + duration)) row.add((line.name + duration))
} else { } else {