duration-field specifier
Francis J. Lacoste
francis.lacoste at contre.com
Tue Nov 12 21:40:25 CET 2002
On lun, 2002-11-11 at 01:48, Edwin Groothuis wrote:
> What would be great is to have a way to force the session_time-total
> in hours, because in the real world often duration is sold in hours
> (ISPs for example :-):
Yes! Yes! Yes!
I was exactly starting to think of the same thing. One of the biggest
problem with the LR_SCALE_ configuration variable is that the unit
(Gigs, Megs, K, H, D, etc.) is based on the value. This means that you
can get in the same table Megs, Gigs, K and bytes which is an awful
things to do since the numbers cannot be compared directly anymore.
>
> lire:timegroup0 session_time-total
> ----------------------------------------------------- ------------------
> June 204.0h
> July 204.0h
> August 223.2h
> September 235.2h
> October 283.2h
> November 24.0h
> ----------------------------------------------------- ------------------
>
> <lire:report-calc-spec>
> <lire:timegroup field="time" period="1M">
> <lire:sum name="session_time-total" field="session_time" unit="hours"/>
> </lire:timegroup>
> </lire:report-calc-spec>
>
What I propose is to have a default unit (which would replace the
current LR_SCALE_ variables) and make it overridable in each report
specification (using a unit attribute like you suggested).
Thanks for the suggestion!
--
Francis J. Lacoste
francis at Contre.COM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.logreport.org/pipermail/development/attachments/20021112/920f9956/attachment.bin
More information about the Development
mailing list