Actually given that we already have /proc/cpuinfo when the report is
being created we could just collapse that down in python with something
like:

short_list = []
for item in reversed(report['ProcCpuinfo'].split('\n')):
    short_list.append(item)
    if item.startswith('processor\t:'):
        break

short_list = reversed(short_list)

report['ShortProcCpuinfo'] = '\n'.join(short_list)

This still ends up catching Hardware, Revision, and Serial from arm and
will display the greatest processor number instead of 0 which might be
nice too.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1673557

Title:
  /proc/cpuinfo should be collected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1673557/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to