Skip to content

Commit 2706b46

Browse files
committed
wip
1 parent b0f45cf commit 2706b46

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlin.code.style=official
22

3-
protocolVersion=0.2.0-alpha-4
3+
protocolVersion=0.2.0-alpha-5
44

55
kotlinVersion=1.5.31
66
vertxVersion=4.0.2

src/commonMain/kotlin/spp.protocol/instrument/meter/LiveMeter.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package spp.protocol.instrument.meter
22

3+
import kotlinx.serialization.Contextual
4+
import kotlinx.serialization.Serializable
35
import spp.protocol.instrument.InstrumentThrottle
46
import spp.protocol.instrument.LiveInstrument
57
import spp.protocol.instrument.LiveInstrumentType
68
import spp.protocol.instrument.LiveSourceLocation
7-
import kotlinx.serialization.Contextual
8-
import kotlinx.serialization.Serializable
99

1010
/**
1111
* todo: description.
@@ -30,7 +30,8 @@ data class LiveMeter(
3030
) : LiveInstrument() {
3131
override val type: LiveInstrumentType = LiveInstrumentType.METER
3232

33-
fun toMetricId(): String = "spp_" + meterType.name.lowercase() + "_" + id!!.replace("-", "_")
33+
fun toMetricIdWithoutPrefix(): String = meterType.name.lowercase() + "_" + id!!.replace("-", "_")
34+
fun toMetricId(): String = "spp_" + toMetricIdWithoutPrefix()
3435

3536
/**
3637
* Specify explicitly so Kotlin doesn't override.

0 commit comments

Comments
 (0)