X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/42c4d12010e1ed77ea2934073b1298cf7b852ce8..3e061469c8529e44e50a22b648837259fbc19d70:/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp diff --git a/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp b/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp index 91f910e0..c4684c1b 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp @@ -1,5 +1,7 @@ #include +#include // xmlrpc-c devs have missed something :) + #include "stg/version.h" #include "stg/common.h" #include "info_methods.h" @@ -26,9 +28,9 @@ un += " "; un += utsn.nodename; structVal["version"] = xmlrpc_c::value_string(SERVER_VERSION); -structVal["tariff_num"] = xmlrpc_c::value_int(tariffs->GetTariffsNum()); +structVal["tariff_num"] = xmlrpc_c::value_int(tariffs->Count()); structVal["tariff"] = xmlrpc_c::value_int(2); -structVal["users_num"] = xmlrpc_c::value_int(users->GetUserNum()); +structVal["users_num"] = xmlrpc_c::value_int(users->Count()); structVal["uname"] = xmlrpc_c::value_string(un); structVal["dir_num"] = xmlrpc_c::value_int(DIR_NUM); structVal["day_fee"] = xmlrpc_c::value_int(dayFee);