Pajlatek wrote:
Hello i am preparing stats for large over 1800 users stats,and we need
to have day limits like 18GB,and at night from 1:00 am to 8:00 we
allow unlimited download.
If you have hourly counters, then you can do some fancy grouping in
PostgresSQL/MySQL to do this.
The easiest thing would probably be to create a small lookup table with
24 records, flagging an hour as day or night. Then the reports can join
the data in the hourly accounting table joined with the lookup table,
and do a master group by day/night per user.
Wim