Skip to content

Commit

Permalink
Add cpuGHz
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Feb 5, 2025
1 parent a070bb1 commit bba618b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func getCpuInfoFromProcCpuinfo(ret *model.SystemInfo) {
defer cpuinfoFile.Close()
scanner := bufio.NewScanner(cpuinfoFile)
var modelNameFound bool
var cpuMHz string
var cpuMHz, cpuGHz string
for scanner.Scan() {
line := scanner.Text()
fields := strings.Split(line, ":")
Expand Down

0 comments on commit bba618b

Please sign in to comment.