Fixed reporting duration between builds in gradle statistics

This commit is contained in:
Andrey Uskov
2020-05-28 20:55:31 +03:00
parent 8dcbc391fe
commit 0ed9356cd2
@@ -65,7 +65,7 @@ class KotlinGradleFUSLogger : StartupActivity, DumbAware, Runnable {
is BooleanMetrics -> putIfNotNull(metric.name, this.getMetric(metric)?.toStringRepresentation())
is StringMetrics -> putIfNotNull(metric.name, this.getMetric(metric)?.toStringRepresentation())
is NumericalMetrics -> putIfNotNull(metric.name, this.getMetric(metric)?.toStringRepresentation())
is Pair<*, *> -> putIfNotNull(metric.first.toString(), metric.second.toString())
is Pair<*, *> -> putIfNotNull(metric.first.toString(), metric.second?.toString())
}
}
if (data.size > 0) {