Craig, The quick answer is no, plain MRTG can not deal with decimal fractions. However if you use rrdtool as backend and an appropiate frontend decimal numbers should be no problem.
If you don't want to use rrdtool the only way to display the decimal fraction is to multiply the value by some figure. In case of a value of the type 'gauge' you can use 'Factor[...]: ' to multiply the figure you get from the script. In case of a rate per second that is calculated by MRTG you can use the options 'peminute' or even 'perhour' to display low numbers. HTH, Jan. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mr C Baker Sent: Wednesday, March 22, 2006 12:05 PM To: [EMAIL PROTECTED] Subject: [mrtg] Decimal Places Hello, I am graphing DNS queries per second, but most of the time the servers receive very few. For example a figure of 0.78002855998603615 is being sent to MRTG via another script and others similar quite often. Is it possible to force MRTG to calculate the figure to 1 or 2 decimal places? It is currently rounding it up to the nearest whole number. TIA Craig -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://lists.ee.ethz.ch/lsg2.cgi _________________________________________________________ Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail. Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van dit bericht te vernietigen. _________________________________________________________ The ministry of Social Affairs and Employment is not liable for any incorrect or incomplete transmission of the information in this e-mail or for any delay in its receipt. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its content. _________________________________________________________ -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
