mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-03-31 02:02:54 +08:00
fix: Correct formIndex formatting in session metrics processing
This commit is contained in:
parent
b7c9d6e6f1
commit
a88f8c2dc5
@ -96,7 +96,7 @@ func ProcessSessionMetrics(save defs.SessionSaveData, username string) {
|
||||
|
||||
formIndex := ""
|
||||
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)
|
||||
@ -106,7 +106,7 @@ func ProcessSessionMetrics(save defs.SessionSaveData, username string) {
|
||||
}
|
||||
species := int(speciesFloat)
|
||||
|
||||
key := fmt.Sprintf("%d-%s", species, formIndex)
|
||||
key := fmt.Sprintf("%d%s", species, formIndex)
|
||||
party += key + ","
|
||||
starterCounter.WithLabelValues(key).Inc()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user