Don't use underscores in variable names
This commit is contained in:
parent
65616500e8
commit
803cea9d67
|
@ -31,11 +31,11 @@ func sysinfoAvgWithContext(ctx context.Context) (*AvgStat, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
const si_load_shift = 16
|
const siLoadShift = 16
|
||||||
return &AvgStat{
|
return &AvgStat{
|
||||||
Load1: float64(info.Loads[0]) / float64(1<<si_load_shift),
|
Load1: float64(info.Loads[0]) / float64(1<<siLoadShift),
|
||||||
Load5: float64(info.Loads[1]) / float64(1<<si_load_shift),
|
Load5: float64(info.Loads[1]) / float64(1<<siLoadShift),
|
||||||
Load15: float64(info.Loads[2]) / float64(1<<si_load_shift),
|
Load15: float64(info.Loads[2]) / float64(1<<siLoadShift),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue