Comment 4 for bug 1673557

Revision history for this message
Brian Murray (brian-murray) wrote :

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.