Re: [E-devel] e_modules net and wlan fixes
On Dec 7, 2006, at 9:24 PM, David Seikel wrote: On Thu, 7 Dec 2006 13:51:48 -0600 Brian Mattern [EMAIL PROTECTED] wrote: On Thu, Dec 07, 2006 at 11:53:53AM -0600, Brian Mattern wrote: On Thu, Dec 07, 2006 at 05:52:40PM +1000, David Seikel wrote: On Tue, 5 Dec 2006 18:33:06 -0600 Brian Mattern [EMAIL PROTECTED] wrote: Something like this is what I had in mind when I drew http://rephorm.com/files/old/meter-big.png a few years ago. I had implemented a bit of it, then realized that I don't really have much going on that I need to measure... I get a time out from that link. Yeah, the server its on (the same as edevelop.org) seems to be down again :( Try now Works now. I like your ideas. I'll keep them in mind if I ever get around to implementing this. The edevelop.org server seems to be having great difficulty staying upright these days. Indeed. I've setup a number of monitors to try to track down the culprit. -Blake - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
On Fri, 8 Dec 2006 02:18:45 -0800 Blake Barnett [EMAIL PROTECTED] wrote: On Dec 7, 2006, at 9:24 PM, David Seikel wrote: On Thu, 7 Dec 2006 13:51:48 -0600 Brian Mattern [EMAIL PROTECTED] wrote: On Thu, Dec 07, 2006 at 11:53:53AM -0600, Brian Mattern wrote: On Thu, Dec 07, 2006 at 05:52:40PM +1000, David Seikel wrote: On Tue, 5 Dec 2006 18:33:06 -0600 Brian Mattern [EMAIL PROTECTED] wrote: Something like this is what I had in mind when I drew http://rephorm.com/files/old/meter-big.png a few years ago. I had implemented a bit of it, then realized that I don't really have much going on that I need to measure... I get a time out from that link. Yeah, the server its on (the same as edevelop.org) seems to be down again :( Try now Works now. I like your ideas. I'll keep them in mind if I ever get around to implementing this. The edevelop.org server seems to be having great difficulty staying upright these days. Indeed. I've setup a number of monitors to try to track down the culprit. I disabled my bot a few days ago, just to eliminate one possible culprit. signature.asc Description: PGP signature - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
On Thu, Dec 07, 2006 at 05:52:40PM +1000, David Seikel wrote: On Tue, 5 Dec 2006 18:33:06 -0600 Brian Mattern [EMAIL PROTECTED] wrote: Something like this is what I had in mind when I drew http://rephorm.com/files/old/meter-big.png a few years ago. I had implemented a bit of it, then realized that I don't really have much going on that I need to measure... I get a time out from that link. Yeah, the server its on (the same as edevelop.org) seems to be down again :( - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
On Thursday, 07 December 2006, at 11:53:53 (-0600), Brian Mattern wrote: Yeah, the server its on (the same as edevelop.org) seems to be down again :( I blame xcomp. Michael -- Michael Jennings (a.k.a. KainX) http://www.kainx.org/ [EMAIL PROTECTED] n + 1, Inc., http://www.nplus1.net/ Author, Eterm (www.eterm.org) --- It is possible to commit no mistakes and still lose. That is not a weakness; that is life. -- Captain Picard, Peak Performance - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
On Thu, Dec 07, 2006 at 11:53:53AM -0600, Brian Mattern wrote: On Thu, Dec 07, 2006 at 05:52:40PM +1000, David Seikel wrote: On Tue, 5 Dec 2006 18:33:06 -0600 Brian Mattern [EMAIL PROTECTED] wrote: Something like this is what I had in mind when I drew http://rephorm.com/files/old/meter-big.png a few years ago. I had implemented a bit of it, then realized that I don't really have much going on that I need to measure... I get a time out from that link. Yeah, the server its on (the same as edevelop.org) seems to be down again :( Try now - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
On Thu, 7 Dec 2006 13:51:48 -0600 Brian Mattern [EMAIL PROTECTED] wrote: On Thu, Dec 07, 2006 at 11:53:53AM -0600, Brian Mattern wrote: On Thu, Dec 07, 2006 at 05:52:40PM +1000, David Seikel wrote: On Tue, 5 Dec 2006 18:33:06 -0600 Brian Mattern [EMAIL PROTECTED] wrote: Something like this is what I had in mind when I drew http://rephorm.com/files/old/meter-big.png a few years ago. I had implemented a bit of it, then realized that I don't really have much going on that I need to measure... I get a time out from that link. Yeah, the server its on (the same as edevelop.org) seems to be down again :( Try now Works now. I like your ideas. I'll keep them in mind if I ever get around to implementing this. The edevelop.org server seems to be having great difficulty staying upright these days. signature.asc Description: PGP signature - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
On Tue, 5 Dec 2006 18:33:06 -0600 Brian Mattern [EMAIL PROTECTED] wrote: On Wed, Dec 06, 2006 at 03:29:48AM +1000, David Seikel wrote: On Fri, 01 Dec 2006 18:32:41 +0100 Stark, Thomas [EMAIL PROTECTED] wrote: I eventually want to replace all these system monitoring modules with some common code that resembles the way that gkrellm handles graphs. I would vote for a set of graph views. Some would need to be smart objects (e.g. one doing amplitude vs time, possibly with multiple graphs on the same chart). Others could be entirely up to the themer. Simply allow a means for the theme to provide different types (each being a separate group) and use messages to pass in the current value of the the measured qty (maybe both as an absolute value, set on a text part e.g 480 MB and as a percentage 80%). Then you would just need a set of pluggable 'measurables' (mem, net, wireless signal strength, etc) and a means to connect measurables to view types. Something like this is what I had in mind when I drew http://rephorm.com/files/old/meter-big.png a few years ago. I had implemented a bit of it, then realized that I don't really have much going on that I need to measure... I get a time out from that link. signature.asc Description: PGP signature - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
On Fri, 01 Dec 2006 18:32:41 +0100 Stark, Thomas [EMAIL PROTECTED] wrote: attached you will find two patches. One will fix the net module (change of the calculation base, because the unit of ci-max is packets not bytes) I don't think that your code, or the original code is correct. The net module is trying to show a speedometer bar, so we need to know the maximum speed in order to be able to determine which percentage of the maximum speed, and therefore which percentage of the maximum sized bar to show. ci-max is the MTU (Maximum Transfer Unit), which is the maximum size a single packet can be, and not at all related to how fast those packets travel. There is no system provided number that you can look at to find out the maximum speed of any particular network interface, as the speed is likely capped at the ISPs equipment. The best you can do is to either track the fastest speed through the interface, or ask the user what speed they are supposed to be getting. I eventually want to replace all these system monitoring modules with some common code that resembles the way that gkrellm handles graphs. I'm not hearing anyone complain about the net module, so I'll leave well enough alone for now. Your other patch was useful though, and I applied part of it. signature.asc Description: PGP signature - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
On Wednesday, 06 December 2006, at 03:29:48 (+1000), David Seikel wrote: The net module is trying to show a speedometer bar, so we need to know the maximum speed in order to be able to determine which percentage of the maximum speed, and therefore which percentage of the maximum sized bar to show. ci-max is the MTU (Maximum Transfer Unit), which is the maximum size a single packet can be, and not at all related to how fast those packets travel. There is no system provided number that you can look at to find out the maximum speed of any particular network interface, as the speed is likely capped at the ISPs equipment. The best you can do is to either track the fastest speed through the interface, or ask the user what speed they are supposed to be getting. FWIW, the epplets I wrote kept track of the highest speed they'd seen while running to use for the max. It wasn't perfect, but it was reasonable. I eventually want to replace all these system monitoring modules with some common code that resembles the way that gkrellm handles graphs. To be blunt, if people wanted things the way gkrellm did them, they'd be using gkrellm. Michael -- Michael Jennings (a.k.a. KainX) http://www.kainx.org/ [EMAIL PROTECTED] n + 1, Inc., http://www.nplus1.net/ Author, Eterm (www.eterm.org) --- Sometimes it can last Forever, but it seldom ever lasts Forever. And we learn just how fast Forever goes. -- Howard Hewett - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
Am Mittwoch, den 06.12.2006, 03:29 +1000 schrieb David Seikel: On Fri, 01 Dec 2006 18:32:41 +0100 Stark, Thomas [EMAIL PROTECTED] wrote: attached you will find two patches. One will fix the net module (change of the calculation base, because the unit of ci-max is packets not bytes) I don't think that your code, or the original code is correct. You are right. The calculation is totally bogus. Don't know what I thought when I implemented it. :( The net module is trying to show a speedometer bar, so we need to know the maximum speed in order to be able to determine which percentage of the maximum speed, and therefore which percentage of the maximum sized bar to show. ci-max is the MTU (Maximum Transfer Unit), which is the maximum size a single packet can be, and not at all related to how fast those packets travel. There is no system provided number that you can look at to find out the maximum speed of any particular network interface, as the speed is likely capped at the ISPs equipment. The best you can do is to either track the fastest speed through the interface, or ask the user what speed they are supposed to be getting. I vote for the solution asking the user which link speed he have. Maybe we can change the MUT slider to a scaling factor slider (from 1 to 100 for example) and multiply the value to the real bytes per second, so you can adjust the indication amplitude as you wish. Btw, thanks for looking at my patches. Bye, Thomas I eventually want to replace all these system monitoring modules with some common code that resembles the way that gkrellm handles graphs. I'm not hearing anyone complain about the net module, so I'll leave well enough alone for now. Your other patch was useful though, and I applied part of it. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Stark, Thomas [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
On Wed, Dec 06, 2006 at 03:29:48AM +1000, David Seikel wrote: On Fri, 01 Dec 2006 18:32:41 +0100 Stark, Thomas [EMAIL PROTECTED] wrote: I eventually want to replace all these system monitoring modules with some common code that resembles the way that gkrellm handles graphs. I would vote for a set of graph views. Some would need to be smart objects (e.g. one doing amplitude vs time, possibly with multiple graphs on the same chart). Others could be entirely up to the themer. Simply allow a means for the theme to provide different types (each being a separate group) and use messages to pass in the current value of the the measured qty (maybe both as an absolute value, set on a text part e.g 480 MB and as a percentage 80%). Then you would just need a set of pluggable 'measurables' (mem, net, wireless signal strength, etc) and a means to connect measurables to view types. Something like this is what I had in mind when I drew http://rephorm.com/files/old/meter-big.png a few years ago. I had implemented a bit of it, then realized that I don't really have much going on that I need to measure... But, for all those meter-junkies out there, this would provide something much nicer and more flexible than gkrellm. rephorm - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] e_modules net and wlan fixes
Hi, attached you will find two patches. One will fix the net module (change of the calculation base, because the unit of ci-max is packets not bytes) and one the wlan module (emitting of the label activation signal). By, Thomas -- Stark, Thomas [EMAIL PROTECTED] --- e-cvs/e_modules/net/e_mod_main.c 2006-09-22 23:09:00.0 +0200 +++ e/e_modules/net/e_mod_main.c 2006-11-17 14:39:29.0 +0100 @@ -12,6 +12,8 @@ Ecore_Timer *check_timer; unsigned long old_in; unsigned long old_out; + unsigned long old_pkg_in; + unsigned long old_pkg_out; }; struct _Net @@ -474,9 +476,12 @@ char buf[256]; unsigned long in = 0; unsigned long out = 0; + unsigned long pin = 0; + unsigned long pout = 0; unsigned long dummy = 0; int found; long bytes_in, bytes_out; + long pkg_in, pkg_out; char in_str[100]; char out_str[100]; double i, o; @@ -498,8 +503,8 @@ buf[i] = ' '; if (sscanf (buf, %s %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu - %lu %lu %lu %lu\n, dev, in, dummy, dummy, - dummy, dummy, dummy, dummy, dummy, out, dummy, + %lu %lu %lu %lu\n, dev, in, pin, dummy, + dummy, dummy, dummy, dummy, dummy, out, pout, dummy, dummy, dummy, dummy, dummy, dummy) 17) continue; if (!ci-device) @@ -519,14 +524,23 @@ bytes_out = out - inst-old_out; bytes_in = bytes_in / ci-poll_time; bytes_out = bytes_out / ci-poll_time; + pkg_in = pin - inst-old_pkg_in; + pkg_out = pout - inst-old_pkg_out; if (bytes_in 0) bytes_in = 0; if (bytes_out 0) bytes_out = 0; + if (pkg_in 0) +pkg_in = 0; + if (pkg_out 0) +pkg_out = 0; + inst-old_in = in; inst-old_out = out; + inst-old_pkg_in = pin; + inst-old_pkg_out = pout; edje_object_part_text_set (inst-net_obj, net_label, ci-device); @@ -562,12 +576,12 @@ } i = 0.0; - if (bytes_in != 0.0) -i = ((double) bytes_in / (double) ci-max); + if (pkg_in != 0.0) +i = ((double) pkg_in / (double) ci-max); o = 0.0; - if (bytes_out != 0.0) -o = ((double) bytes_out / (double) ci-max); + if (pkg_out != 0.0) +o = ((double) pkg_out / (double) ci-max); if (i 0.0) i = 0.0; --- e-cvs/e_modules/wlan/e_mod_main.c 2006-09-22 23:09:02.0 +0200 +++ e/e_modules/wlan/e_mod_main.c 2006-11-18 15:22:18.0 +0100 @@ -480,14 +480,15 @@ _wlan_update_level (inst, level_send); snprintf(omsg,sizeof(omsg),Qual: %d%%, wlan_link); - - edje_object_signal_emit(inst-wlan_obj, label_active, ); edje_object_part_text_set(inst-wlan_obj, qual_label, omsg); snprintf(omsg,sizeof(omsg),Lvl: %d%%, wlan_level); edje_object_part_text_set(inst-wlan_obj, level_label, omsg); - return 1; + if (ci-always_text) + edje_object_signal_emit(inst-wlan_obj, label_active, ); + + return 1; } static void - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] e_modules net and wlan fixes
On Fri, 01 Dec 2006 18:32:41 +0100 Stark, Thomas [EMAIL PROTECTED] wrote: attached you will find two patches. One will fix the net module (change of the calculation base, because the unit of ci-max is packets not bytes) and one the wlan module (emitting of the label activation signal). I have a user group meeting to run today, and I should be leaving soon. I'll get to these patches later, maybe tomorrow. The user group meeting runs all day. signature.asc Description: PGP signature - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel