Fix CPU probing on ppc

Bug #1274436 reported by Anton Blanchard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bootchart (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

bootchart fails to detect the number of CPUs on ppc and ends up putting 0 in the header:

system.cpu = (0)

Which causes pybootchartgui to fail with a divide by 0. This patch fixes it.

Tags: patch ppc64el
Revision history for this message
Anton Blanchard (anton-samba) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix parsing of /proc/cpuinfo on ppc" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in bootchart (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Adam Conrad (adconrad) wrote :

20:13 <infinity> That patch is completely bogus, as it's patching bogus code.
20:14 <infinity> If it's going to fork and call shell utilities anyway, it should just call a
                 reliable one (nproc(1)) instead of trying to learn how to parse cpuinfo on every
                 arch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.