[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing :: View topic - Javascript Time PopUp - BW Points?
Cheshire Cat Computing
http://www.steveshipway.org/forum/

Javascript Time PopUp - BW Points?
http://www.steveshipway.org/forum/viewtopic.php?f=2&t=1036
Page 1 of 1

Author:  garrycook [ Fri Jan 05, 2007 7:58 am ]
Post subject:  Javascript Time PopUp - BW Points?

The new Javascript tme popup is very nice. However, it would be really great if this could also display the bandwidth value... I guess it wouldn't always be bandwidth, but you get the idea.

Is it possible to display this instead, or in addition to (my preference) the time?
Perhaps it could be configurable in routers2.conf?
jpopup = [ time | value | both ]

--Garry

Author:  stevesh [ Fri Jan 05, 2007 10:08 am ]
Post subject: 

Do you mean the max bandwidth, or the actual value?

I assume you mean the actual value, and so the answer is... no. Well, not without including the entire set of 400+ values in the javascript as a gigantic array (still a possibility, though). The time popup is actually derived by passing the start and end times of the graph and interpolating. I can't do this for the value because I cant tell what the Max and Min values on the y-scale are (RRD picks these itself according to the data).

Therefore, the only way to do it is to extract all 400 values and put them into an array. This is even harder to do because the javascript is loaded before the page is generated, and it doesn't know if the page will be a normal graph, a userdefined (with more than 2 values, remember) or even many graphs on a summary page. The gets us into a chicken/egg problem. There *are* some ways around it, of course, if you can pass a function pointer in javascript, but it all makes for some very messy HTML pages.

Maybe it would be possible to have the value(s) come up only on normal graphs, not on summary or userdefineds. I looked into this when I was making the popup and shied away from the chaos involved...

I'll add it to the wishlist, anyways

Author:  garrycook [ Fri May 25, 2007 3:04 am ]
Post subject: 


Author:  stevesh [ Fri May 25, 2007 10:25 am ]
Post subject: 

It did indeed make it into 2.18b2. However, it is normally disabled (you need to put actuals=yes into the routers2.conf) due to a couple of problems.

1. It slows things down a bit (as it has to extract and format the entire data range)
2. It doesnt work on userdefined graphs (as they can containe more than 2 values)
3. It still needs a bit more testing in the situation where there are multiple graphs on the page (sometimes it can get confused as to which set of values it should be using)
4. It doesnt work in mini graphs - eg, summary pages (by design)
5. It is a bit inaccurate in positioning - it can be a pixel or 2 off position in some cases. This is due to the way it has to be calculated.
6. The number formatting is not ideal - it should contain the shortlegend and kMG prefixes, but doesnt. This is actually a bit more awkward to achieve than youd think.
7. There seems to be a javascript compatibility problem with certain versions of IE that Im having problems reproducing. This works, but causes a javascript error popup when the page initialises. May be fixed now.

Author:  garrycook [ Sat May 26, 2007 2:40 am ]
Post subject: 

Yikes. That's a lot of issues. Add to that the fact that if you only have one value, neither is displayed. I noticed this because one of my VPN tunnels was set to 'bandwidth 1000', and the inbound traffic went above 'AbsMax' and was dropped. Neither value was shown by the pop-up.
Still, excellent work Steve. Thanks for all of the time you've put into this. :D

Page 1 of 1 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/