Skip to content

Commit d240add

Browse files
committed
feat(liner): Add wsl linter
1 parent 5342df0 commit d240add

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

load_avg/load_avg_linux.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313

1414
func Normalized() (float64, error) {
1515
var info syscall.Sysinfo_t
16+
1617
err := syscall.Sysinfo(&info)
1718
if err != nil {
1819
return 0, err
@@ -25,6 +26,7 @@ func Normalized() (float64, error) {
2526

2627
const si_load_shift = 16
2728
load := float64(info.Loads[0]) / float64(1<<si_load_shift) / float64(cpus)
29+
2830
return load, nil
2931
}
3032

@@ -33,6 +35,7 @@ func CpuCount() (uint64, error) {
3335
if err != nil {
3436
return 0, err
3537
}
38+
3639
s := stringutils.UnsafeString(b)
3740

3841
cpus := strings.Count(s, "processor\t: ")

0 commit comments

Comments
 (0)