File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4144,14 +4144,13 @@ func (sm *StoreMetrics) updateEngineMetrics(m storage.Metrics) {
4144
4144
sm .categoryIterMetrics .update (m .CategoryStats )
4145
4145
sm .categoryDiskWriteMetrics .update (m .DiskWriteStats )
4146
4146
4147
- totalWriteAmp := float64 (0 )
4148
4147
for level , stats := range m .Levels {
4149
4148
sm .RdbBytesIngested [level ].Update (int64 (stats .TableBytesIngested ))
4150
4149
sm .RdbLevelSize [level ].Update (stats .TablesSize )
4151
4150
sm .RdbLevelScore [level ].Update (stats .Score )
4152
- totalWriteAmp += stats .WriteAmp ()
4153
4151
}
4154
- sm .StorageWriteAmplification .Update (totalWriteAmp )
4152
+ tot := m .Total ()
4153
+ sm .StorageWriteAmplification .Update (tot .WriteAmp ())
4155
4154
sm .StoragePointDeletionsBytes .Update (int64 (m .Table .Garbage .PointDeletionsBytesEstimate ))
4156
4155
sm .StorageRangeDeletionsBytes .Update (int64 (m .Table .Garbage .RangeDeletionsBytesEstimate ))
4157
4156
statsComplete := int64 (0 )
You can’t perform that action at this time.
0 commit comments