mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-15 12:26:00 +01:00
Lower sleep times in rollinglog
This commit is contained in:
parent
d1340bd1d8
commit
b6680d7391
2 changed files with 2 additions and 3 deletions
|
@ -132,7 +132,7 @@ int rollingRead(const int socket) {
|
||||||
buffer.fill('\0');
|
buffer.fill('\0');
|
||||||
}
|
}
|
||||||
|
|
||||||
usleep(100000);
|
usleep(1000);
|
||||||
}
|
}
|
||||||
close(socket);
|
close(socket);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -1753,7 +1753,6 @@ void runWritingDebugLogThread(const int conn) {
|
||||||
std::thread([conn]() {
|
std::thread([conn]() {
|
||||||
while (Debug::RollingLogFollow::Get().IsRunning()) {
|
while (Debug::RollingLogFollow::Get().IsRunning()) {
|
||||||
if (Debug::RollingLogFollow::Get().isEmpty(conn)) {
|
if (Debug::RollingLogFollow::Get().isEmpty(conn)) {
|
||||||
std::this_thread::sleep_for(1000ms);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1762,7 +1761,7 @@ void runWritingDebugLogThread(const int conn) {
|
||||||
// We cannot write, when connection is closed. So thread will successfully exit by itself
|
// We cannot write, when connection is closed. So thread will successfully exit by itself
|
||||||
break;
|
break;
|
||||||
|
|
||||||
std::this_thread::sleep_for(100ms);
|
std::this_thread::sleep_for(1ms);
|
||||||
}
|
}
|
||||||
close(conn);
|
close(conn);
|
||||||
Debug::RollingLogFollow::Get().StopFor(conn);
|
Debug::RollingLogFollow::Get().StopFor(conn);
|
||||||
|
|
Loading…
Reference in a new issue