0,0 → 1,27 |
select (date (day || ' Sep 2003')) as the_date, |
round(( |
( |
select base + delta from tcount |
where source = 'tun0_in' |
and stamp = ( |
select max(stamp) from tcount |
where date_trunc('day', stamp) = date (day || ' Sep 2003') |
and source = 'tun0_in' |
) |
) |
- |
( |
select base + delta from tcount |
where source = 'tun0_in' |
and stamp = ( |
select max(stamp) from tcount |
where date_trunc('day', stamp) = date (day || ' Sep 2003') - interval '1 day' |
and source = 'tun0_in' |
) |
) |
) / 1024 / 1024) |
as count |
from tdays d |
where day <= 30 |
order by the_date; |
|