hstat_account_entry_sum tmp = {0,0,0,0};
int i;
- //HSTAT_ACCOUNT_SUM(tmp, tmp, hstat_account_last_week(hs_acc));
for (i=0;i<4;i++)
{
- HSTAT_ACCOUNT_SUM(tmp, tmp, hs_acc->longterm[(hstat_week() + i) % 10]);
+ HSTAT_ACCOUNT_SUM(tmp, tmp, hs_acc->longterm[(hstat_week() - i + 10) % 10]);
}
return tmp;
}
//HSTAT_CHANNEL_SUM(tmp, tmp, hstat_channel_last_week(hs_chan));
for (i=0;i<4;i++)
{
- HSTAT_CHANNEL_SUM(tmp, tmp, hs_chan->longterm[(hstat_week() + i) % 10]);
+ HSTAT_CHANNEL_SUM(tmp, tmp, hs_chan->longterm[(hstat_week() - i + 10) % 10]);
}
return tmp;
}