|
|
@ -96,7 +96,7 @@ func ProcessSessionMetrics(save defs.SessionSaveData, username string) {
|
|
|
|
|
|
|
|
|
|
|
|
formIndex := ""
|
|
|
|
formIndex := ""
|
|
|
|
if formIdx, ok := partyMember["formIndex"].(float64); ok && formIdx != 0 {
|
|
|
|
if formIdx, ok := partyMember["formIndex"].(float64); ok && formIdx != 0 {
|
|
|
|
formIndex = fmt.Sprintf("%d", int(formIdx))
|
|
|
|
formIndex = fmt.Sprintf("-%d", int(formIdx))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
speciesFloat, ok := partyMember["species"].(float64)
|
|
|
|
speciesFloat, ok := partyMember["species"].(float64)
|
|
|
@ -106,7 +106,7 @@ func ProcessSessionMetrics(save defs.SessionSaveData, username string) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
species := int(speciesFloat)
|
|
|
|
species := int(speciesFloat)
|
|
|
|
|
|
|
|
|
|
|
|
key := fmt.Sprintf("%d-%s", species, formIndex)
|
|
|
|
key := fmt.Sprintf("%d%s", species, formIndex)
|
|
|
|
party += key + ","
|
|
|
|
party += key + ","
|
|
|
|
starterCounter.WithLabelValues(key).Inc()
|
|
|
|
starterCounter.WithLabelValues(key).Inc()
|
|
|
|
}
|
|
|
|
}
|
|
|
|