Don't use underscores in variable names

This commit is contained in:
Ville Skyttä 2021-08-18 16:44:20 +03:00
parent 65616500e8
commit 803cea9d67
1 changed files with 4 additions and 4 deletions

View File

@ -31,11 +31,11 @@ func sysinfoAvgWithContext(ctx context.Context) (*AvgStat, error) {
return nil, err
}
const si_load_shift = 16
const siLoadShift = 16
return &AvgStat{
Load1: float64(info.Loads[0]) / float64(1<<si_load_shift),
Load5: float64(info.Loads[1]) / float64(1<<si_load_shift),
Load15: float64(info.Loads[2]) / float64(1<<si_load_shift),
Load1: float64(info.Loads[0]) / float64(1<<siLoadShift),
Load5: float64(info.Loads[1]) / float64(1<<siLoadShift),
Load15: float64(info.Loads[2]) / float64(1<<siLoadShift),
}, nil
}