sutex/lcdmiscellany

Net stats

Opened this issue · 19 comments

What steps will reproduce the problem?
1.Wont show Up or Downstream stats
2.
3.

What is the expected output? What do you see instead?
Current stats, shows 0.

What version of the product are you using? On what operating system?
0.4.5.0, on windows 7 home 64bit

Please provide any additional information below.
http://code.google.com/hosting/settings

Original issue reported on code.google.com by DeadRip...@gmail.com on 1 Feb 2010 at 11:07

You are using a standard network adapter (Not a USB or firewire one or 
something)? 
CPU usage is working, right?

Original comment by mattme...@gmail.com on 2 Feb 2010 at 2:51

Yes, I'm using the integrated wireless card, and yes cpu and all other stats 
are working

Original comment by DeadRip...@gmail.com on 2 Feb 2010 at 7:12

I'll test it on my laptop when I get a chance, but think it works fine with my
laptop's wireless...  If so, unlikely I'll be able to figure it out, 
unfortunately.

Original comment by mattme...@gmail.com on 2 Feb 2010 at 7:15

I had to go into the countermanager.c and specify the net card, all good now

Original comment by DeadRip...@gmail.com on 5 Feb 2010 at 6:43

That's odd...Sometimes you get duplicate devices, and I remove those, but 
otherwise,
the function to get the combined bandwidth of all devices should give exactly 
the
same thing as the sum of all devices that you could get doing things that way.  
Might
be a bug in my duplicate device detection code...

Original comment by mattme...@gmail.com on 5 Feb 2010 at 6:47

Well i have a related question for you, instead of haveing to edit the script 
everytime i switch from my wireless to hardline, is there anyway to add the 2? 
This 
is what i have for currently

    function NetworkUpdate() {
        %down = GetAllDown()["Atheros AR928X Wireless Network Adapter"];
        %downGraph.Update(%down);

        %up = GetAllUp()["Atheros AR928X Wireless Network Adapter"];
        %upGraph.Update(%up);
    }

Original comment by DeadRip...@gmail.com on 8 Feb 2010 at 3:21

    %down = GetAllDown()["Atheros AR928X Wireless Network Adapter"] +
GetAllDown()["Other Network Adapter Name"];

And same for up.

Original comment by mattme...@gmail.com on 8 Feb 2010 at 3:24

works like a charm! thank you so much, this is by far my favorite script for my 
g13

Original comment by DeadRip...@gmail.com on 8 Feb 2010 at 9:41

Issue 9 has been merged into this issue.

Original comment by mattme...@gmail.com on 4 Jul 2010 at 5:11

I currently have the name of my Ethernet network adapter like

    function NetworkUpdate() {
        %down = GetAllDown()["Atheros AR928X Wireless Network Adapter"];
        %downGraph.Update(%down);

        %up = GetAllUp()["Atheros AR928X Wireless Network Adapter"];
        %upGraph.Update(%up);
    }

BUT, i still get incorrect values example, truly downloading at 1.4MB/s but it 
shows 6.30 MB/s.

Original comment by akbal...@gmail.com on 4 Jul 2010 at 5:15

It seems to be around ~5x the correct value.

Original comment by akbal...@gmail.com on 4 Jul 2010 at 5:22

Now that is really weird.  I believe I've had a similar report in the past, but 
I just pass on exactly what Microsoft gives to me, so don't think I can 
implement any general purpose fix, unfortunately.

However, if they always have the same ratio, you could just divide the values 
by 4 (or 5) or something, like:

%down = GetAllDown()["Atheros AR928X Wireless Network Adapter"]/4;

(I suspect it's off by a factor of 4, just because 2 levels of redundant 
reporting give you a ratio of 4 to 1, but the value you report look more like 5 
to 1).

Original comment by mattme...@gmail.com on 4 Jul 2010 at 5:23

What is odd is that i have another plugin g15netspeed which shows the correct 
speeds, i will use the divide by factor method, i just dont seee what causes 
that.

Original comment by akbal...@gmail.com on 4 Jul 2010 at 5:26

For checking accuracy, you should look at task manager->networking, rather than 
what an application claims.  Applications don't report overhead bandwidth, but 
I believe the value I report includes overhead.

Original comment by mattme...@gmail.com on 4 Jul 2010 at 5:27

no that is what i mean, my max speed 1.4MB/s +- 100KB/s is correct else where, 
something strange is happening inside this plugin with my computer devices.

Original comment by akbal...@gmail.com on 4 Jul 2010 at 5:31

There are a number of different ways of getting bandwidth.  I use a method that 
reports per-device bandwidth, and then add everything up.  No idea what method 
g15netspeed uses, and it's not open source.  As I don't have the issue on any 
of my systems, and Microsoft's specs don't mention anything about it, can't 
really look into it.

Original comment by mattme...@gmail.com on 4 Jul 2010 at 5:31

thanks anyways, i will see what i can do

Original comment by akbal...@gmail.com on 4 Jul 2010 at 5:35

While i got your attention, is there a way to replace the fraps FPS with EVGA 
Precision FPS?

Original comment by akbal...@gmail.com on 4 Jul 2010 at 5:56

If EVGA uses shared memory, sure.  If not, not without a ton of effort on your 
part.

Original comment by mattme...@gmail.com on 4 Jul 2010 at 5:16