<br><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 5:11 PM, Jean-Yves F. Barbier <span dir="ltr"><<a href="mailto:12ukwn@gmail.com">12ukwn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Le Fri, 26 Mar 2010 19:55:11 -0400,<br>
Sergey Okhapkin <<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>> a écrit :<br>
<div class="im"><br>
> Here is lua code I use instead of mod_nibblebill:<br>
><br>
> if(ANSWEREDTIME<=initblock) then<br>
> CHARGETIME=initblock<br>
> else<br>
> incrs=math.floor((ANSWEREDTIME-<br>
> initblock+billingblock-1)/billingblock);<br>
> CHARGETIME=initblock+incrs*billingblock;<br>
> end<br>
> sessionbill=(CHARGETIME*calledrate)/60 + connfee;<br>
<br>
</div>I realise 2 things:<br>
1- FS is even more powerful than all I read about it,<br></blockquote><div>True <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2- It's gonna take me "some" time to fully understand it...<br></blockquote><div>Also true.<br><br>It's totally worth the investment in time and energy. Enjoy the ride!<br>-MC<br><br></div></div>