X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..d49162286e811faacd7d7f3277da61efdfb635db:/projects/stargazer/plugins/store/firebird/firebird_store_users.cpp diff --git a/projects/stargazer/plugins/store/firebird/firebird_store_users.cpp b/projects/stargazer/plugins/store/firebird/firebird_store_users.cpp index 035ae134..aaa44f6b 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store_users.cpp +++ b/projects/stargazer/plugins/store/firebird/firebird_store_users.cpp @@ -26,9 +26,9 @@ * */ -#include "stg_const.h" +#include "stg/const.h" #include "firebird_store.h" -#include "ibpp.h" +#include "stg/ibpp.h" //----------------------------------------------------------------------------- int FIREBIRD_STORE::GetUsersList(vector * usersList) const @@ -667,9 +667,9 @@ int FIREBIRD_STORE::WriteUserDisconnect(const string & login, 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__); @@ -717,7 +717,7 @@ catch (IBPP::Exception & ex) return 0; } //----------------------------------------------------------------------------- -int FIREBIRD_STORE::WriteDetailedStat(const map * statTree, +int FIREBIRD_STORE::WriteDetailedStat(const map & statTree, time_t lastStat, const string & login) const { @@ -735,14 +735,14 @@ try { tr->Start(); map::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);