Enlightenment CVS committal Author : devilhorns Project : e_modules Module : net
Dir : e_modules/net Modified Files: e_mod_main.c Log Message: Patch from Tobias Glenstrup for sane values when timer is greater than 1 second. =================================================================== RCS file: /cvs/e/e_modules/net/e_mod_main.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- e_mod_main.c 6 Jun 2006 15:30:08 -0000 1.40 +++ e_mod_main.c 23 Jun 2006 04:41:17 -0000 1.41 @@ -472,6 +472,9 @@ 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; Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs