Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 CPU Info

open
nobody
None
5
2003-06-17
2003-06-17
PS2 YaBasic
No

CPU Info parsing on linux from /proc/cpuinfo is faulty. It
only checks the first word of the cpuinfo, which means
that on systems where also stuff like cpu MHz exists the
vendor string does not get parsed.

This results in the GenuineIntel MHz cpu identifiers (the
MHz comes from the cpu MHz field).

I posted a patch in the patches section that is both
more efficient (it parses the file once) but also more
correct and complete.

Discussion

  • Andrew Gammell
    Andrew Gammell
    2003-06-23

    Logged In: YES
    user_id=704498

    Add to this the problem that occurs when running on a
    machine based around a Motorola 680x0 CPU.

    In this case the client fails to gather any CPU info,
    instead sending 'unknown' as the CPU info string.