<br><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 5:11 PM, Jean-Yves F. Barbier <span dir="ltr">&lt;<a href="mailto:12ukwn@gmail.com">12ukwn@gmail.com</a>&gt;</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 &lt;<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>&gt; a écrit :<br>
<div class="im"><br>
&gt; Here is lua code I use instead of mod_nibblebill:<br>
&gt;<br>
&gt;                 if(ANSWEREDTIME&lt;=initblock) then<br>
&gt;                         CHARGETIME=initblock<br>
&gt;                 else<br>
&gt;                         incrs=math.floor((ANSWEREDTIME-<br>
&gt; initblock+billingblock-1)/billingblock);<br>
&gt;                         CHARGETIME=initblock+incrs*billingblock;<br>
&gt;                 end<br>
&gt;                 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&#39;s gonna take me &quot;some&quot; time to fully understand it...<br></blockquote><div>Also true.<br><br>It&#39;s totally worth the investment in time and energy. Enjoy the ride!<br>-MC<br><br></div></div>