You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When cpu.Counts(true)parses/proc/cpuinfo, it counts every line that starts with processor (case-insensitive). In the case of /proc/cpuinfo showing the following for each cpu, the total number is double what it should be:
processor : 0
Processor : ARMv7 Processor rev 4 (v7l)
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 40.94
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
Expected behavior
Number of CPUs should match the actual number of CPUs.
Environment (please complete the following information):
Linux: Linux localhost 4.4.146+ #1 SMP PREEMPT Tue Feb 16 03:31:51 UTC 2021 armv7l
Additional context
This is an embedded device running Android. Full contents of /proc/cpuinfo is attached: cpuinfo.txt.gz
The text was updated successfully, but these errors were encountered:
Lomanic
added a commit
to Lomanic/gopsutil
that referenced
this issue
Feb 21, 2021
Describe the bug
When
cpu.Counts(true)
parses/proc/cpuinfo
, it counts every line that starts withprocessor
(case-insensitive). In the case of/proc/cpuinfo
showing the following for each cpu, the total number is double what it should be:Expected behavior
Number of CPUs should match the actual number of CPUs.
Environment (please complete the following information):
Linux:
Linux localhost 4.4.146+ #1 SMP PREEMPT Tue Feb 16 03:31:51 UTC 2021 armv7l
Additional context
This is an embedded device running Android. Full contents of
/proc/cpuinfo
is attached:cpuinfo.txt.gz
The text was updated successfully, but these errors were encountered: