Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
rexagod committed Nov 24, 2024
1 parent 51919fd commit 857c5b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpuinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ func parseCPUInfoX86(info []byte) ([]CPUInfo, error) {
}

func parseCPUInfoARM(info []byte) ([]CPUInfo, error) {
fmt.Println(info)
scanner := bufio.NewScanner(bytes.NewReader(info))

firstLine := firstNonEmptyLine(scanner)
Expand Down Expand Up @@ -246,7 +247,11 @@ func parseCPUInfoARM(info []byte) ([]CPUInfo, error) {
cpuinfo[i].ModelName = field[1]
}
}
fmt.Println(cpuinfo)
fmt.Println(featuresLine)
fields := strings.SplitN(featuresLine, ": ", 2)
fmt.Println(fields)
fmt.Println(len(fields))
for i := range cpuinfo {
cpuinfo[i].Flags = strings.Fields(fields[1])
}
Expand Down

0 comments on commit 857c5b8

Please sign in to comment.