Les Fairall <[EMAIL PROTECTED]> a tapoté :

> First... thanks for pdbv, its a nice utility.
> 
> I ran into a small error that occurs when it is run on a 
> SMP system... (script still works, just spits out a syntax error)...
> when you "cat /proc/cpuinfo" on an SMP system you get info for
> all processors.  This ends up messing the system info in index.html
> as well as causing the expr to complain on line 740 as it has
> the speeds of all 4 processors instead of just 1.. here is
> sh -x output..
> ++ cat /proc/cpuinfo
> ++ grep 'cpu MHz'
> ++ awk '{print $4}'
> ++ tr . ' '
> + CPUSPEED=899
> 899
> 899
> 899
> ++ expr 899 899 899 899 '>' 500
> + TEST_CPUSPEED=expr: syntax error
> + '[' expr: syntax error == 1 ']'
> /usr/bin/pdbv: [: too many arguments
> 
> quick way out is to probably change any greps involving /proc/cpuinfo
> to be "grep --max-count=1" to handle the extra junk.
> 
> Also this causes the system info in index.html to be a bit messy..
> since the /proc/cpuinfo has extra entries...
> 
> Red Hat Linux release 7.3 (Valhalla) 
> Kernel 2.4.18-17.7.xsmp i686, compiled #1 SMP Tue Oct 8 12:37:04 EDT 2002 
> GenuineIntel GenuineIntel GenuineIntel GenuineIntel Pentium III (Cascades) 
> Pentium III (Cascades) Pentium III (Cascades) Pentium III (Cascades) (899.311 
> 899.311 899.311 899.311 MHz), 1787.77 1796.87 1796.87 1796.87 bogomips 
> 
> If you are interested I would be more than happy to make changes to
> fix the error as well as clean up the  system info generated 
> for index.html in the case of an SMP system and send you back the 
> changes. 

First, thanks a lot for your attention.

In fact, I changed several things related to system and hardware
informations.

Now pdbv only rely on uname to get his informations. It's better to
deal with uname (despite the fact that older versions does not give so
much informations) that which every existing system (/proc/cpuinfo is
really different depending on the arch).

Also, pdbv no longer do the CPUSPEED test. 

You should try the latest pdbv version released today, 1.2.4


Currently I'm not able to provide an RPM package and Florian, the
debian maintainer, seems really busy, but you can install it from
sources. Better, if you have checkinstall installed, you can make the
package by yourself. 

Just download the tarball and to
./configure --prefix=/usr
make
checkinstall
(instead of make install).

After that, I would be glad to know if the 1.2.4 is ok for your
system. (normally it should be)

-- 
Mathieu Roy
 
 << Profile  << http://savannah.gnu.org/users/yeupou <<
 >> Homepage >> http://yeupou.coleumes.org           >>
 << GPG Key  << http://stock.coleumes.org/gpg        <<


Reply via email to