X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..312c0eec08cfff18956ff4e238f6b6982bb0e721:/stargazer/plugins/other/smux/sensors.cpp?ds=inline diff --git a/stargazer/plugins/other/smux/sensors.cpp b/stargazer/plugins/other/smux/sensors.cpp index f52a413b..9a87cbda 100644 --- a/stargazer/plugins/other/smux/sensors.cpp +++ b/stargazer/plugins/other/smux/sensors.cpp @@ -11,7 +11,7 @@ bool UsersSensor::GetValue(ObjectSyntax_t * objectSyntax) const int handle = users.OpenSearch(); assert(handle && "USERS::OpenSearch is always correct"); -USER_PTR user; +STG::User* user; size_t count = 0; while (!users.SearchNext(handle, &user)) { @@ -31,7 +31,7 @@ std::string UsersSensor::ToString() const int handle = users.OpenSearch(); assert(handle && "USERS::OpenSearch is always correct"); -USER_PTR user; +STG::User* user; size_t count = 0; while (!users.SearchNext(handle, &user)) { @@ -41,13 +41,11 @@ while (!users.SearchNext(handle, &user)) users.CloseSearch(handle); -std::string res; -x2str(count, res); -return res; +return std::to_string(count); } #endif -bool ActiveUsersSensor::UserPredicate(USER_PTR userPtr) const +bool ActiveUsersSensor::UserPredicate(STG::User* userPtr) const { if (!userPtr->GetConnected()) return false;