Decimal Places

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

Moderators: Developers, Moderators

Post Reply
Helmut Schneider
Cacti User
Posts: 151
Joined: Mon Feb 05, 2007 3:57 am
Location: Munich, Germany

Decimal Places

Post by Helmut Schneider »

Hi,

I cannot find the info anymore, if I want GPRINT to round the value and append text. E.g. I have a temperture that shows as 30.3 and I want it to be displayed as "30 °C". I think it was something in the Text Format like "Current:%.0lf %s°C".

Thank you!
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Decimal Places

Post by TheWitness »

This is a good topic for the RRDtool mailing list. Why don't you ask that question there, and maybe the Cacti GPRINT's under Console > Presets menu pick could be updated to include something other than a raw format specification. I'm not sure it's possible. Never tried it. If RRDtool does not support, maybe a new Cacti feature logged at GitHub might suffice. There are a long list of pending requests. So hang in there, you could also hire a developer to do it too.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Helmut Schneider
Cacti User
Posts: 151
Joined: Mon Feb 05, 2007 3:57 am
Location: Munich, Germany

Re: Decimal Places

Post by Helmut Schneider »

Presets, that was the place I was look for:

%.0lf%s°C

Thank you!
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Decimal Places

Post by TheWitness »

Glad it's working for you!!!
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests