printfd(__FILE__,"Day = %d Min = %d\n", day, min);
printfd(__FILE__,"Day = %d Min = %d\n", day, min);
- printfd(__FILE__,"New Minute. old = %d current = %d\n", min, t->tm_min);
- min = t->tm_min;
+ printfd(__FILE__,"New Minute. old = %d current = %d\n", min, t.tm_min);
+ min = t.tm_min;
- printfd(__FILE__,"New Day. old = %d current = %d\n", day, t->tm_mday);
- day = t->tm_mday;
+ printfd(__FILE__,"New Day. old = %d current = %d\n", day, t.tm_mday);
+ day = t.tm_mday;
{
printfd(__FILE__,"MidnightResetSessionStat\n");
for_each(users.begin(), users.end(), mem_fun_ref(&USER::MidnightResetSessionStat));
{
printfd(__FILE__,"MidnightResetSessionStat\n");
for_each(users.begin(), users.end(), mem_fun_ref(&USER::MidnightResetSessionStat));
int dayFee = settings->GetDayFee();
if (dayFee == 0)
dayFee = DaysInCurrentMonth();
printfd(__FILE__, "DayFee = %d\n", dayFee);
int dayFee = settings->GetDayFee();
if (dayFee == 0)
dayFee = DaysInCurrentMonth();
printfd(__FILE__, "DayFee = %d\n", dayFee);
-printfd(__FILE__, "Today = %d DayResetTraff = %d\n", t1->tm_mday, settings->GetDayResetTraff());
+printfd(__FILE__, "Today = %d DayResetTraff = %d\n", t1.tm_mday, settings->GetDayResetTraff());
printfd(__FILE__, "DayFeeIsLastDay = %d\n", settings->GetDayFeeIsLastDay());
if (!settings->GetDayFeeIsLastDay())
printfd(__FILE__, "DayFeeIsLastDay = %d\n", settings->GetDayFeeIsLastDay());
if (!settings->GetDayFeeIsLastDay())
{
printfd(__FILE__, "DayFee\n");
for_each(users.begin(), users.end(), mem_fun_ref(&USER::ProcessDayFee));
{
printfd(__FILE__, "DayFee\n");
for_each(users.begin(), users.end(), mem_fun_ref(&USER::ProcessDayFee));
{
printfd(__FILE__, "ResetTraff\n");
for_each(users.begin(), users.end(), mem_fun_ref(&USER::ProcessNewMonth));
{
printfd(__FILE__, "ResetTraff\n");
for_each(users.begin(), users.end(), mem_fun_ref(&USER::ProcessNewMonth));
loginIndex.erase(user->GetLogin());
}
//-----------------------------------------------------------------------------
loginIndex.erase(user->GetLogin());
}
//-----------------------------------------------------------------------------