27 Mar
2010
27 Mar
'10
12:11 a.m.
Le Fri, 26 Mar 2010 19:55:11 -0400, Sergey Okhapkin <sos@sokhapkin.dyndns.org> a écrit :
Here is lua code I use instead of mod_nibblebill:
if(ANSWEREDTIME<=initblock) then CHARGETIME=initblock else incrs=math.floor((ANSWEREDTIME- initblock+billingblock-1)/billingblock); CHARGETIME=initblock+incrs*billingblock; end sessionbill=(CHARGETIME*calledrate)/60 + connfee;
I realise 2 things: 1- FS is even more powerful than all I read about it, 2- It's gonna take me "some" time to fully understand it... -- Dogs just don't seem to be able to tell the difference between important people and the rest of us.