[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

Software support and information
It is currently Tue Nov 11, 2025 7:59 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Jan 05, 2007 7:58 am 
Offline
Contributor

Joined: Sat Apr 01, 2006 6:44 am
Posts: 16
Location: Denver, CO
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


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 10:08 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri May 25, 2007 3:04 am 
Offline
Contributor

Joined: Sat Apr 01, 2006 6:44 am
Posts: 16
Location: Denver, CO

_________________
--
Garry Cook

The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing.
~Albert Einstein


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri May 25, 2007 10:25 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sat May 26, 2007 2:40 am 
Offline
Contributor

Joined: Sat Apr 01, 2006 6:44 am
Posts: 16
Location: Denver, CO
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

_________________
--
Garry Cook

The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing.
~Albert Einstein


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group