Skip to content

Commit

Permalink
Adding also phys count verification in case of VM's
Browse files Browse the repository at this point in the history
  • Loading branch information
p53 committed Feb 3, 2014
1 parent d4061f7 commit d9d8865
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions systeminfo/proc/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,9 @@ def getData(self, options):
phys_to_cores['physcpu' + phys_cpu] = cores
core_count += cores

if logic_count == core_count:
thread_count = 0
elif logic_count > core_count:
if logic_count > core_count and phys_cpu_count != 0:
thread_count = logic_count

# getting memory info
self.getMemInfo()

Expand Down

0 comments on commit d9d8865

Please sign in to comment.