Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Aug 17, 2017 3:00 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Bandwidth utilisation labels, integers only?
PostPosted: Wed Mar 15, 2017 9:51 am 
Offline

Joined: Tue Mar 14, 2017 6:49 am
Posts: 6
Good afternoon,

Is it possible to have the labels on links showing as an integer rather than with the two decimal places? [See the attached file] for example, 58% (or 59% depending on rounding) rather than 58.53%. This would make my diagrams a bit neater.

I've looked through the manual but didn't spot anything.

Regards,

Kris.

Attachment:
Console -_ Weathermap-Primary-WAN.png
Console -_ Weathermap-Primary-WAN.png [ 11.42 KiB | Viewed 300 times ]


Top
 Profile  
 
 Post subject: Re: Bandwidth utilisation labels, integers only?
PostPosted: Mon Mar 20, 2017 12:24 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5117
Location: United Kingdom
This should do it... (at the top of your map config file).

The %d means integer. The rest is to get the right value for the percentage.

Code:
LINK DEFAULT
   INBWFORMAT {link:this:inpercent:%d}%
   OUTBWFORMAT {link:this:outpercent:%d}%

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)


Top
 Profile  
 
 Post subject: Re: Bandwidth utilisation labels, integers only?
PostPosted: Wed Mar 22, 2017 11:43 am 
Offline

Joined: Tue Mar 14, 2017 6:49 am
Posts: 6
Thanks Howie, that's great.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


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

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group