*
*/
-#include "stg_const.h"
+#include "stg/const.h"
#include "firebird_store.h"
-#include "ibpp.h"
+#include "stg/ibpp.h"
//-----------------------------------------------------------------------------
int FIREBIRD_STORE::GetUsersList(vector<string> * usersList) const
const DIR_TRAFF & down,
const DIR_TRAFF & sessionUp,
const DIR_TRAFF & sessionDown,
- double cash,
- double freeMb,
- const std::string & reason) const
+ double /*cash*/,
+ double /*freeMb*/,
+ const std::string & /*reason*/) const
{
STG_LOCKER lock(&mutex, __FILE__, __LINE__);
return 0;
}
//-----------------------------------------------------------------------------
-int FIREBIRD_STORE::WriteDetailedStat(const map<IP_DIR_PAIR, STAT_NODE> * statTree,
+int FIREBIRD_STORE::WriteDetailedStat(const map<IP_DIR_PAIR, STAT_NODE> & statTree,
time_t lastStat,
const string & login) const
{
{
tr->Start();
map<IP_DIR_PAIR, STAT_NODE>::const_iterator it;
- it = statTree->begin();
+ it = statTree.begin();
st->Prepare("insert into tb_detail_stats \
(till_time, from_time, fk_user, dir_num, \
ip, download, upload, cost) \
values (?, ?, (select pk_user from tb_users \
where name = ?), \
?, ?, ?, ?, ?)");
- while (it != statTree->end())
+ while (it != statTree.end())
{
st->Set(1, now);
st->Set(2, statTime);