CPU information still not right on Linux?

Bug #1312830 reported by shawn tagseth
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OCS Inventory: Unified Unix Agent
Fix Released
Medium
Frank

Bug Description

I have tried the Universal linux client, version 2.1 on Ubuntu 12.04 and the CPU information is still not showing up properly. I don't know if its the same across other *nixes.

With 2.1 I get CPU speed as 0. If I drop in the latest version of Ocsinventory/Agent/Backend/OS/Linux/Archs/i386/i386.pm I get CPU frequency of 4 on one processor and "ZIF socket" as the frequency on the other. (i was hoping for an easy fix).

Revision history for this message
shawn tagseth (stagseth) wrote :
Revision history for this message
shawn tagseth (stagseth) wrote :

Sample detailed screenshot output from ocsreports

Revision history for this message
Trois Six (trois-six) wrote :

Please apply this patch.

dmidecode -t processor is processed line by line and $1 may not contain the expected values.

Example :

        if (/Current\sSpeed:\s*(.*) (|MHz|GHz)/i){
            $current->{SPEED} = $1;
                }
                else {
            $current->{SPEED} = $1;
                }

If it doesn't match, $current->{SPEED} will contain the value of the last match, which may not be a SPEED value but maybe a VOLTAGE value or a SOCKET value.

Revision history for this message
Trois Six (trois-six) wrote :

Sorry, the patch didn't apply on a fresh copy of trunk. Here is a new one.

Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
importance: Undecided → Medium
assignee: nobody → Frank (frank-bourdeau)
mortheres (mortheres)
Changed in ocsinventory-unix-agent:
milestone: none → 2.1.1
status: New → Fix Released
Revision history for this message
Eric Germán Burgueño (nevermind85) wrote :

Bug #1117110 is also related to this one, although not a duplicate.

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.