perlpanel-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Perlpanel-devel] WiFiMonitor


From: n_powell
Subject: [Perlpanel-devel] WiFiMonitor
Date: Mon, 15 Nov 2004 22:36:15 +0000
User-agent: Mutt/1.5.6i

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I got around to looking at the WiFiMonitor code again and compared it to
the way the gnome wireless applet does it's thing...after some impromptu
math lessons on IRC it was pointed out to me that link quality is
actually a measurement of decible and therefore requires the log function
to adequately define it...so after reading up on that and searching
perldoc.com I arrived at a slight change in how to go about figuring the
link quality.  It's a rather simple fix

I changed this line:
$self->{label}->set_text(sprintf('%d%%', ($signal / 92) *
100));

to this:
$self->{label}->set_text(sprintf('%d%%', log(($signal) / log(92)) *
100));

It does make a difference when the link quality is neither 0 nor 92.

If it would make more sense to submit a patch or a complete .pm LMK I'll
fire it out.

Thanks 

Nathan

- -- 
NO WAR!                                               
                                                        
..."O Lord our God, help us to tear their soldiers to 
bloody shreds with our shells; help us to cover their 
smiling fields with the pale forms of their patriot dead... 

        -- Mark Twain, war prayer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBmS9eAHGknoE/3V8RAu+jAJ4oV6tVugc/jdU4AvPiyvaFSxrSXACfbHgj
D6LFcq/Nm+IF2f903KmddWQ=
=YPnK
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]