that last version i used is 3.2.1 i guess the problem is that i multiply by 100 and then the $stat() variable gets a minus sign... no? on the previous version i used less data so even after multiplying it didn't reached the var limit. i will check later what happends if i change the multiply order like var(x)=($stat(1)/$stat(2))*100. thanks
On Wed, Feb 8, 2012 at 12:26 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Hello,
there were no changes to this part of code in 3.2.x, what was the previous version you used?
Also, note that the variables work with signed integers, which have the range -2147483648 to 2147483647. So when you pass over 2147483647, it gets negative.
Cheers, Daniel
On 2/6/12 9:51 AM, Uri Shacked wrote:
Hi,
i am using some math to send to my NOC the memory usage of kamailio. this is what i do:
$var(xxx)=$stat(real_used_size)*100/$stat(total_size)
before the 3.2.2 upgrade, i usualy got regular results - 3,5,20 etc....
now, i get results like -8, -32 and so...
any ideas why?
here are the $stat numbers that gets me the -8 result: $stat(real_used_size)=31899516 $stat(total_size)=134217728
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda