summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim <UnicronNL@users.noreply.github.com>2016-04-11 14:35:19 +0200
committerKim <UnicronNL@users.noreply.github.com>2016-04-11 14:35:19 +0200
commit7c0afdb7bf08c5d08447adfe98258e337433fa11 (patch)
tree4c04da61258abfe50cbd39c0c2dd91cf5e1a2aea
parente611d966761270dbb80cf8ff77698d8b571a6ebe (diff)
parent12f19de392ec9eaebc4ec51ac19f225288147832 (diff)
downloadvyatta-wanloadbalance-7c0afdb7bf08c5d08447adfe98258e337433fa11.tar.gz
vyatta-wanloadbalance-7c0afdb7bf08c5d08447adfe98258e337433fa11.zip
Merge pull request #5 from mickvav/current
Added unistd.h in some places
-rw-r--r--src/loadbalance.cc2
-rw-r--r--src/main.cc1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/loadbalance.cc b/src/loadbalance.cc
index 0c24585..80eab13 100644
--- a/src/loadbalance.cc
+++ b/src/loadbalance.cc
@@ -115,6 +115,6 @@ LoadBalance::output()
void
LoadBalance::sleep()
{
- ::sleep(5);
+ usleep(5000000);
}
diff --git a/src/main.cc b/src/main.cc
index 507e262..7994696 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -12,6 +12,7 @@
#include <syslog.h>
#include <stdio.h>
#include "stdlib.h"
+#include <unistd.h>
#include <iostream>
#include <unistd.h>
#include "loadbalance.hh"