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    


[SOLVED] Link percentages - no decimal

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



Joined: 13 Sep 2007
Posts: 9

PostPosted: Mon Nov 12, 2007 10:45 am    Post subject: [SOLVED] Link percentages - no decimal Reply with quote

In order to make it a little more user friendly, is there a way to round up or down the percentages on lines? I really don't need to know that 8.89% is used on a 10 gig link. 8 (or preferably 9) is sufficient.

Thanks.
Back to top
Howie
Cacti Guru User


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

PostPosted: Mon Nov 12, 2007 11:33 am    Post subject: Reply with quote

Not right now, but in 0.94 you can reformat the BWLABEL strings however you like so:
Code:

INBWLABELFORMAT {link:this:inpercent:%d}%
OUTBWLABELFORMAT {link:this:outpercent:%d}%


0.94 should be out in the next few days.
Back to top
RokleM



Joined: 13 Sep 2007
Posts: 9

PostPosted: Wed Nov 28, 2007 2:59 pm    Post subject: Reply with quote

I upgraded and typed in the code you listed. It appears to still display the full value. What am I missing?

Thanks.
Back to top
Howie
Cacti Guru User


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

PostPosted: Wed Nov 28, 2007 5:13 pm    Post subject: Reply with quote

It's actually INBWFORMAT and OUTBWFORMAT. Misremembered. Sorry.

It's in the CHANGES file, and a couple of places in the manual though.
Back to top
RokleM



Joined: 13 Sep 2007
Posts: 9

PostPosted: Thu Nov 29, 2007 9:37 am    Post subject: Reply with quote

I found the typo in the document last night. Seems to do the trick. 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