diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-09-19 15:14:44 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-09-19 15:14:44 +0200 |
commit | 8835bf344d886df42ae4c03e38438699ca93a311 (patch) | |
tree | 359a7d89f7516ce59e253f94c622c828a56226bf /src/Root.cpp | |
parent | Leaves now drop with the correct meta when broken by a pickaxe with silk touch (#4034) (diff) | |
download | cuberite-8835bf344d886df42ae4c03e38438699ca93a311.tar cuberite-8835bf344d886df42ae4c03e38438699ca93a311.tar.gz cuberite-8835bf344d886df42ae4c03e38438699ca93a311.tar.bz2 cuberite-8835bf344d886df42ae4c03e38438699ca93a311.tar.lz cuberite-8835bf344d886df42ae4c03e38438699ca93a311.tar.xz cuberite-8835bf344d886df42ae4c03e38438699ca93a311.tar.zst cuberite-8835bf344d886df42ae4c03e38438699ca93a311.zip |
Diffstat (limited to 'src/Root.cpp')
-rw-r--r-- | src/Root.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index 39ba1acc5..5c461a9ac 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -87,10 +87,8 @@ void cRoot::InputThread(cRoot & a_Params) while (a_Params.m_InputThreadRunFlag.test_and_set() && std::cin.good()) { #ifndef _WIN32 - static const std::chrono::microseconds PollPeriod = std::chrono::milliseconds{ 100 }; - timeval Timeout{ 0, 0 }; - Timeout.tv_usec = static_cast<long>(PollPeriod.count()); + Timeout.tv_usec = 100 * 1000; // 100 msec fd_set ReadSet; FD_ZERO(&ReadSet); |