summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-09-19 15:14:44 +0200
committerAlexander Harkness <me@bearbin.net>2017-09-19 15:14:44 +0200
commit8835bf344d886df42ae4c03e38438699ca93a311 (patch)
tree359a7d89f7516ce59e253f94c622c828a56226bf /src
parentLeaves now drop with the correct meta when broken by a pickaxe with silk touch (#4034) (diff)
downloadcuberite-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')
-rw-r--r--src/Root.cpp4
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);