summaryrefslogtreecommitdiffstats
path: root/fnet/src
diff options
context:
space:
mode:
Diffstat (limited to 'fnet/src')
-rw-r--r--fnet/src/tests/scheduling/schedule.cpp2
-rw-r--r--fnet/src/vespa/fnet/scheduler.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/fnet/src/tests/scheduling/schedule.cpp b/fnet/src/tests/scheduling/schedule.cpp
index b563c7057ff..4ae4a2e07de 100644
--- a/fnet/src/tests/scheduling/schedule.cpp
+++ b/fnet/src/tests/scheduling/schedule.cpp
@@ -32,7 +32,7 @@ public:
if (b < a)
return false;
- if ((b - a) > (2 * FNET_Scheduler::SLOT_TICK))
+ if ((b - a) > (3 * FNET_Scheduler::SLOT_TICK))
return false;
return true;
diff --git a/fnet/src/vespa/fnet/scheduler.cpp b/fnet/src/vespa/fnet/scheduler.cpp
index d9229cd4843..4569aaf61c4 100644
--- a/fnet/src/vespa/fnet/scheduler.cpp
+++ b/fnet/src/vespa/fnet/scheduler.cpp
@@ -69,7 +69,7 @@ FNET_Scheduler::~FNET_Scheduler()
void
FNET_Scheduler::Schedule(FNET_Task *task, double seconds)
{
- uint32_t ticks = 1 + (uint32_t) std::ceil(seconds * (1000.0 / SLOT_TICK));
+ uint32_t ticks = 2 + (uint32_t) std::ceil(seconds * (1000.0 / SLOT_TICK));
std::lock_guard<std::mutex> guard(_lock);
if (!task->_killed) {