Ensure runtime feature is properly padded

This commit is contained in:
JeremyStar™ 2024-12-29 23:51:35 +01:00
parent 1abddc3233
commit c20933f835
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -116,7 +116,7 @@ open class SOSLSv2FormatBuilder(call: Call, channelSettings: ChannelSettings?) :
format.append("[")
val differenceTime: Duration = call.creationTime.minus(Logger.Companion.initializationTime)
format.append("${differenceTime.inWholeSeconds}.${differenceTime.inWholeMilliseconds.minus(differenceTime.inWholeSeconds.times(1000))}s")
format.append("${differenceTime.inWholeSeconds}.${differenceTime.inWholeMilliseconds.minus(differenceTime.inWholeSeconds.times(1000)).toString().padEnd(3, '0')}s")
if (enabledFeatures.contains(Feature.FORMATTING))
format.append("<reset><gray>")