Odd Data

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Eliran
Posts: 19
Joined: Sun Jul 10, 2011 8:22 am

Odd Data

Post by Eliran »

Hi all,

I wrote a php script the get data from XML, one parameter i get back is output bytes but the system that i monitor (Wowza) gives it back as number*E*number for example 2.132345E7 that equal to 2.132345*10^7.
My question is if Cacti knows how to translate this to number and work with this format. I cant change the format.

Thanks
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Odd Data

Post by noname »

Converting string into numbers:
- http://www.php.net/manual/en/language.t ... conversion

Code: Select all

% php -r '$a = "2.132345E7" +0; echo $a;'
21323450
But I think, Cacti might be able to handle such values without conversion... (please try!)
Eliran
Posts: 19
Joined: Sun Jul 10, 2011 8:22 am

Re: Odd Data

Post by Eliran »

noname thanks,

It works and you was right, Cacti able to handle such values without conversion.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests