|
@@ -126,13 +126,13 @@ func (n *NeckRingOriginalMerge) IsMageData(data *NeckRingOriginal, xframeId int3
|
|
}
|
|
}
|
|
|
|
|
|
func (n *NeckRingOriginalMerge) SumAvg() {
|
|
func (n *NeckRingOriginalMerge) SumAvg() {
|
|
- n.Rumina = int32(float32(n.Rumina) / float32(n.RecordCount) * float32(n.RecordCount))
|
|
|
|
- n.Inactive = int32(float32(n.Inactive) / float32(n.RecordCount) * float32(n.RecordCount))
|
|
|
|
- n.Active = int32(float32(n.Active) / float32(n.RecordCount) * float32(n.RecordCount))
|
|
|
|
- n.Intake = int32(float32(n.Intake) / float32(n.RecordCount) * float32(n.RecordCount))
|
|
|
|
- n.Other = int32(float32(n.Other) / float32(n.RecordCount) * float32(n.RecordCount))
|
|
|
|
- n.Gasp = int32(float32(n.Gasp) / float32(n.RecordCount) * float32(n.RecordCount))
|
|
|
|
- n.High = int32(float32(n.High) / float32(n.RecordCount) * float32(n.RecordCount))
|
|
|
|
|
|
+ n.Rumina = int32(float32(n.Rumina) / float32(n.RecordCount) * DefaultRecordCount)
|
|
|
|
+ n.Inactive = int32(float32(n.Inactive) / float32(n.RecordCount) * DefaultRecordCount)
|
|
|
|
+ n.Active = int32(float32(n.Active) / float32(n.RecordCount) * DefaultRecordCount)
|
|
|
|
+ n.Intake = int32(float32(n.Intake) / float32(n.RecordCount) * DefaultRecordCount)
|
|
|
|
+ n.Other = int32(float32(n.Other) / float32(n.RecordCount) * DefaultRecordCount)
|
|
|
|
+ n.Gasp = int32(float32(n.Gasp) / float32(n.RecordCount) * DefaultRecordCount)
|
|
|
|
+ n.High = int32(float32(n.High) / float32(n.RecordCount) * DefaultRecordCount)
|
|
n.Voltage = int32(float32(n.Voltage) / float32(n.RecordCount))
|
|
n.Voltage = int32(float32(n.Voltage) / float32(n.RecordCount))
|
|
}
|
|
}
|
|
|
|
|