git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow empty net-router map
[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 5d41a91dacf60b86167fe89ebc1a327daccd9f07..7273ed483479ede97445007aec28e41836a75f1e 100644
(file)
--- a/
projects/stargazer/plugins/authorization/stress/stress.cpp
+++ b/
projects/stargazer/plugins/authorization/stress/stress.cpp
@@
-176,7
+176,8
@@
if (isRunning)
{
if (!isRunning)
break;
{
if (!isRunning)
break;
- usleep(200000);
+ struct timespec ts = {0, 200000000};
+ nanosleep(&ts, NULL);
}
//after 5 seconds waiting thread still running. now killing it
}
//after 5 seconds waiting thread still running. now killing it