fix to power display
This commit is contained in:
@@ -45,6 +45,10 @@ func GetProc() (Proc, error) {
|
||||
proc.Info = map[string]string{}
|
||||
|
||||
scanner := bufio.NewScanner(procFile)
|
||||
if scanner.Err() != nil {
|
||||
return proc, scanner.Err()
|
||||
}
|
||||
|
||||
for scanner.Scan() {
|
||||
line := scanner.Text()
|
||||
line = strings.ReplaceAll(line, "\t", "")
|
||||
|
||||
Reference in New Issue
Block a user