Skip to content

Commit 2606d52

Browse files
committed
check for linux os
1 parent ec46587 commit 2606d52

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/kernelmonitor/kernel_monitor.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"encoding/json"
2121
"io/ioutil"
2222
"regexp"
23-
"syscall"
2423
"time"
2524

2625
kerntypes "k8s.io/node-problem-detector/pkg/kernelmonitor/types"
@@ -81,11 +80,6 @@ func NewKernelMonitorOrDie(configPath string) KernelMonitor {
8180
panic(err)
8281
}
8382
glog.Infof("Finish parsing log file: %+v", k.config)
84-
var info syscall.Sysinfo_t
85-
err = syscall.Sysinfo(&info)
86-
if err != nil {
87-
panic(err)
88-
}
8983
k.watcher = NewKernelLogWatcher(k.config.WatcherConfig)
9084
k.buffer = NewLogBuffer(k.config.BufferSize)
9185
// A 1000 size channel should be big enough.

0 commit comments

Comments
 (0)