Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Variable Width Length

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
cshepherd



Joined: 05 Jan 2006
Posts: 36
Location: Australia

PostPosted: Wed Jun 11, 2008 10:07 pm    Post subject: Variable Width Length Reply with quote

I have read through the manual and quite a few posts here and can't figure out if I can make the width of the links dynamically variable based on percentage in the same manner that colour is.

I can set the width of the link, but that will set both directions to the same width, and only statically.

Firstly, is it possible to change the width based on percentage?
Secondly, is it possible to change the 'in' and 'out' individually as it can with colour?

Thanks
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Thu Jun 12, 2008 2:23 am    Post subject: Re: Variable Width Length Reply with quote

cshepherd wrote:
I have read through the manual and quite a few posts here and can't figure out if I can make the width of the links dynamically variable based on percentage in the same manner that colour is.

I can set the width of the link, but that will set both directions to the same width, and only statically.

Firstly, is it possible to change the width based on percentage?
Secondly, is it possible to change the 'in' and 'out' individually as it can with colour?

Thanks


Yes. The way it works is that you set a base WIDTH as usual. This is the maximum width for your link. Then you add 'SET link_bulge 1' to either the links you want to do this, or LINK DEFAULT for all of them.

Then the actual displayed width will vary with the bandwidth. In 0.96, the width calculation is done independently for in and out, but before that, the whole link changed based on (if I remember correctly) the in percentage.

0.96 is the next release. I thought I did this a while ago, but I guess 0.95b did come out a few months ago now.
Back to top
cshepherd



Joined: 05 Jan 2006
Posts: 36
Location: Australia

PostPosted: Thu Jun 12, 2008 5:40 am    Post subject: Reply with quote

Thanks for the reply Howie, but I seem to be missing something as the width isn't changing. I am running Debian Etch, PHP 5.2.0-8, libgd2 2.0.35.dfsg-1, Cacti 0.9.7b, Plugin-arch 2.1 and Weathermap 0.95b.

Code:
LINK DEFAULT
WIDTH 4
SET link_bulge 1
ARROWSTYLE compact
BWLABEL bits


I have changed the width from 2 to 10 and I can see the width change, I just can't get link_bulge to work. Thanks for your help.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Thu Jun 12, 2008 6:26 am    Post subject: Reply with quote

Sorry - my mistake. It's a map-global thing not per-link, so you put the SET command in the top section of the config file.
Back to top
cshepherd



Joined: 05 Jan 2006
Posts: 36
Location: Australia

PostPosted: Thu Jun 12, 2008 6:34 am    Post subject: Reply with quote

Ahh, you're a legend. I look forward to 0.96 with the separate in/out widths.

Thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group