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

[E-devel] e_modules/net bug



Hello

I think there's a bug in the net-module, if I set the polltime to 1 it
displays sane values, but increasing the polltime increases the Rx and
Tx values.

Dividing the in/out values with the polltime seems to be one solution.

/Regards
Tobias Glenstrup
--- e_mod_main.c.orig	2006-06-21 05:35:40.000000000 +0200
+++ e_mod_main.c	2006-06-21 05:48:19.000000000 +0200
@@ -472,6 +472,8 @@
 
    bytes_in = in - inst->old_in;
    bytes_out = out - inst->old_out;
+   bytes_in = bytes_in / ci->poll_time;
+   bytes_out = bytes_out / ci->poll_time;
    if (bytes_in < 0) bytes_in = 0;
    if (bytes_out < 0) bytes_out = 0;