X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..907166f270d246529788a6de7688f3e54847c0a2:/sgconf/users.cpp?ds=inline diff --git a/sgconf/users.cpp b/sgconf/users.cpp index 018556df..4fcd3559 100644 --- a/sgconf/users.cpp +++ b/sgconf/users.cpp @@ -189,7 +189,7 @@ void ConvSessionTraff(std::string value, USER_STAT_RES & res) value.erase(std::remove(value.begin(), value.end(), ' '), value.end()); std::vector traff(Split >(value, ',', ConvTraff)); if (traff.size() != DIR_NUM) - throw SGCONF::ACTION::ERROR("There should be prcisely " + x2str(DIR_NUM) + " records of session traffic."); + throw SGCONF::ACTION::ERROR("There should be prcisely " + std::to_string(DIR_NUM) + " records of session traffic."); for (size_t i = 0; i < DIR_NUM; ++i) { res.sessionUp[i] = traff[i].up; @@ -202,7 +202,7 @@ void ConvMonthTraff(std::string value, USER_STAT_RES & res) value.erase(std::remove(value.begin(), value.end(), ' '), value.end()); std::vector traff(Split >(value, ',', ConvTraff)); if (traff.size() != DIR_NUM) - throw SGCONF::ACTION::ERROR("There should be prcisely " + x2str(DIR_NUM) + " records of month traffic."); + throw SGCONF::ACTION::ERROR("There should be prcisely " + std::to_string(DIR_NUM) + " records of month traffic."); for (size_t i = 0; i < DIR_NUM; ++i) { res.monthUp[i] = traff[i].up;