LP #907424: pt-summary providing wrong information when command file is missing

Description

**Reported in Launchpad by Frederic Descamps last update 09-06-2012 21:42:41

On 64-bit machines, with 64-bit OS, if the command file is missing, pt-summary prints an error but then continue and provide wrong information:

Kernel | 2.6.32-131.21.1.el6.x86_64
./pt-summary: line 918: file: command not found
Architecture | CPU = 64-bit, OS = 32-bit

the OS in this case should be 64-bit, or if the tool can't find it, not put 32-bit.

After having installed file, the result is of course correct:

Kernel | 2.6.32-131.21.1.el6.x86_64
Architecture | CPU = 64-bit, OS = 64-bit

Environment

None

Smart Checklist

Activity

Show:

lpjirasync January 24, 2018 at 6:13 PM

**Comment from Launchpad by: Brian Fraser on: 01-03-2012 18:24:49

Thank you, applied!

( Frederic, if you get a hang of me in Vegas, I owe you a BEVERAGE_OF_CHOICE for this patch )

lpjirasync January 24, 2018 at 6:13 PM

**Comment from Launchpad by: Frederic Descamps on: 21-12-2011 19:04:28

This patch will return N/A in OS Architecture when file is not found:

Release | Fedora release 16 (Verne)
Kernel | 3.1.5-6.fc16.x86_64
Architecture | CPU = 64-bit, OS = N/A

Done

Details

Assignee

Reporter

Priority

Smart Checklist

Created January 24, 2018 at 6:12 PM
Updated January 24, 2018 at 6:13 PM
Resolved January 24, 2018 at 6:12 PM