X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/85513928f6a270af94c1477f5ae2773647b04cd7..95d54ec2f747d0b89fff42965a781689e7d4db1e:/projects/sgconf/users.cpp?ds=sidebyside diff --git a/projects/sgconf/users.cpp b/projects/sgconf/users.cpp index cdbfbbb5..37b3db5e 100644 --- a/projects/sgconf/users.cpp +++ b/projects/sgconf/users.cpp @@ -25,9 +25,10 @@ std::cout << Indent(level, true) << "login: " << info.login << "\n" << Indent(level) << "cash: " << info.cash << "\n" << Indent(level) << "credit: " << info.credit << "\n" << Indent(level) << "credit expire: " << TimeToString(info.creditExpire) << "\n" - << Indent(level) << "last cash add: " << info.lastCash << "\n" + << Indent(level) << "last cash add: " << info.lastCashAdd << "\n" + << Indent(level) << "last cash add time: " << TimeToString(info.lastCashAddTime) << "\n" << Indent(level) << "prepaid traffic: " << info.prepaidTraff << "\n" - << Indent(level) << "disabled: " << (info.down ? "t" : "f") << "\n" + << Indent(level) << "disabled: " << (info.disabled ? "t" : "f") << "\n" << Indent(level) << "passive: " << (info.passive ? "t" : "f") << "\n" << Indent(level) << "disabled detail stat: " << (info.disableDetailStat ? "t" : "f") << "\n" << Indent(level) << "connected: " << (info.connected ? "t" : "f") << "\n" @@ -42,6 +43,8 @@ std::cout << Indent(level, true) << "login: " << info.login << "\n" << Indent(level) << "address: " << info.address << "\n" << Indent(level) << "phone: " << info.phone << "\n" << Indent(level) << "free mb: " << info.stat.freeMb << "\n" + << Indent(level) << "last ping time: " << TimeToString(info.pingTime) << "\n" + << Indent(level) << "last activity time: " << TimeToString(info.lastActivityTime) << "\n" << Indent(level) << "traffic:\n"; for (size_t i = 0; i < DIR_NUM; ++i) { @@ -54,6 +57,12 @@ for (size_t i = 0; i < DIR_NUM; ++i) std::cout << Indent(level) << "user data:\n"; for (size_t i = 0; i < USERDATA_NUM; ++i) std::cout << Indent(level + 1, true) << "user data " << i << ": " << info.userData[i] << "\n"; +if (!info.authBy.empty()) + { + std::cout << Indent(level) << "auth by:\n"; + for (size_t i = 0; i < info.authBy.size(); ++i) + std::cout << Indent(level + 1, true) << info.authBy[i] << "\n"; + } } void SimpleCallback(bool result,