git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store parser answer in configproto.
[stg.git]
/
projects
/
stargazer
/
plugins
/
authorization
/
stress
/
stress.cpp
diff --git
a/projects/stargazer/plugins/authorization/stress/stress.cpp
b/projects/stargazer/plugins/authorization/stress/stress.cpp
index 39e74b0d44a18c653030857787ed26907a435021..6473b57e6c0d3d05d9b143f1e58348394d0b816f 100644
(file)
--- a/
projects/stargazer/plugins/authorization/stress/stress.cpp
+++ b/
projects/stargazer/plugins/authorization/stress/stress.cpp
@@
-158,7
+158,7
@@
users_iter = usersList.begin();
while (users_iter != usersList.end())
{
Authorize(*users_iter);
while (users_iter != usersList.end())
{
Authorize(*users_iter);
-
users_iter++
;
+
++users_iter
;
}
//isRunning = true;
}
//isRunning = true;
@@
-331,7
+331,7
@@
while (users_iter != usersList.end())
printfd(__FILE__, "User removed from list %s\n", u->GetLogin().c_str());
break;
}
printfd(__FILE__, "User removed from list %s\n", u->GetLogin().c_str());
break;
}
-
users_iter++
;
+
++users_iter
;
}
}
//-----------------------------------------------------------------------------
}
}
//-----------------------------------------------------------------------------
@@
-343,8
+343,7
@@
return -1;
//-----------------------------------------------------------------------------
void * AUTH_STRESS::Run(void * d)
{
//-----------------------------------------------------------------------------
void * AUTH_STRESS::Run(void * d)
{
-AUTH_STRESS * ia;
-ia = (AUTH_STRESS *)d;
+AUTH_STRESS * ia = static_cast<AUTH_STRESS *>(d);
ia->isRunning = true;
ia->isRunning = true;
@@
-367,7
+366,7
@@
while (ia->nonstop)
printfd(__FILE__, "AUTH_STRESS::Unauthorize - user: '%s'\n", (*users_iter)->GetLogin().c_str());
}
printfd(__FILE__, "AUTH_STRESS::Unauthorize - user: '%s'\n", (*users_iter)->GetLogin().c_str());
}
-
users_iter++
;
+
++users_iter
;
}
sleep(1);
}
sleep(1);