[Haizea] sum operation in accounting module
Mehdi Sheikhalishahi
mehdi.alishahi at gmail.com
Thu Jun 10 14:41:30 CDT 2010
Yes, it is possible it was my mistake, I did know about
get_last_counter_value method.
On Thu, Jun 10, 2010 at 9:28 PM, Borja Sotomayor <borja at borjanet.com> wrote:
> Hi,
>
> > How can I implement sum operation in accounting module? e.g. I want to
> add
> > data of all leases.
>
> Is there any reason why you can't use a counter?
>
>
> http://haizea.cs.uchicago.edu/manual_single/manual.html#SECTION04230000000000000000
>
> You can increment the counter by some value every time a lease ends;
> you can then use the _set_stat_from_counter method to create a final
> stat that reports the final value of the counter (the sum of all the
> values you incremented by). The LeaseProbe has a few examples of this.
>
> Cheers!
> --
> Borja Sotomayor
> PhD Candidate in Computer Science, University of Chicago
> http://people.cs.uchicago.edu/~borja/
> _______________________________________________
> Haizea mailing list
> Haizea at mailman.cs.uchicago.edu
> https://mailman.cs.uchicago.edu/mailman/listinfo/haizea
>
--
Regards,
Mehdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.uchicago.edu/pipermail/haizea/attachments/20100610/a49ccf44/attachment.htm
More information about the Haizea
mailing list