git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added optional DB port parameter for MySQL store.
[stg.git]
/
stargazer
/
plugins
/
other
/
smux
/
sensors.cpp
diff --git
a/stargazer/plugins/other/smux/sensors.cpp
b/stargazer/plugins/other/smux/sensors.cpp
index 21e48ddc5f6ccc89d7d75a7b3ecfb243d89dafdd..9a87cbdaa5e2b0bd46fdd20c223ce8a2a2e51b27 100644
(file)
--- 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");
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))
{
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");
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))
{
size_t count = 0;
while (!users.SearchNext(handle, &user))
{
@@
-45,7
+45,7
@@
return std::to_string(count);
}
#endif
}
#endif
-bool ActiveUsersSensor::UserPredicate(
USER_PTR
userPtr) const
+bool ActiveUsersSensor::UserPredicate(
STG::User*
userPtr) const
{
if (!userPtr->GetConnected())
return false;
{
if (!userPtr->GetConnected())
return false;