rename to LoadAvg_1M

This commit is contained in:
Konstantin Lebedev
2022-08-01 21:32:21 +05:00
parent 2f85e31f5c
commit fc65122766
4 changed files with 856 additions and 857 deletions

View File

@@ -40,7 +40,7 @@ func (vs *VolumeServer) VacuumVolumeCompact(req *volume_server_pb.VacuumVolumeCo
resp.ProcessedBytes = processed
if fsErr == nil && numCPU > 0 {
if fsLa, err := fs.LoadAvg(); err == nil {
resp.PercentLoadAvg_1M = float32(fsLa.Load1 / float64(numCPU))
resp.LoadAvg_1M = float32(fsLa.Load1 / float64(numCPU))
}
}
if sendErr = stream.Send(resp); sendErr != nil {