Adding extra decimal to y-axis

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
staze
Posts: 7
Joined: Mon Jan 31, 2011 6:28 pm

Adding extra decimal to y-axis

Post by staze »

Hello,

I've been graphing the CPU load of a device, and it's averaging about 0.02. Sadly, cacti or RRD, seems to round this to "0.0". So my Y axis looks like 0.0, 0.0, 0.0, 0.0, 0.0.

Awesome, no?

Any hints on how I change this so if my load average is always below 0.1, my Y axis would instead be 0.00, 0.02, 0.04, 0.06, 0.08, etc?

Thanks!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Adding extra decimal to y-axis

Post by BSOD2600 »

change the gprint template to show an extra decimal place ;)
staze
Posts: 7
Joined: Mon Jan 31, 2011 6:28 pm

Re: Adding extra decimal to y-axis

Post by staze »

BSOD2600 wrote:change the gprint template to show an extra decimal place ;)
I set all of them to "Load Average" which is %8.2lf (which, to my reading, means 8 digits, and two decimal places). And that works for the Current, max, average... it DOESN'T show that way on the Y axis.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Adding extra decimal to y-axis

Post by BSOD2600 »

ah, you're right I misread :(
staze
Posts: 7
Joined: Mon Jan 31, 2011 6:28 pm

Re: Adding extra decimal to y-axis

Post by staze »

it's cool. just curious how to get this fixed. =/
staze
Posts: 7
Joined: Mon Jan 31, 2011 6:28 pm

Re: Adding extra decimal to y-axis

Post by staze »

Anybody?
staze
Posts: 7
Joined: Mon Jan 31, 2011 6:28 pm

Re: Adding extra decimal to y-axis

Post by staze »

was able to modify rrd.php and add --alt-y-grid to the appropriate lines. Seems to have added needed decimals.

Kind of curious how I keep seeing that this option is supported natively yet doesn't show up anywhere, even in 0.8.8c.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests