summaryrefslogtreecommitdiff
path: root/source3/utils/status_profile.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-27 11:37:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:14:49 -0500
commit1888bb4fd98138b2ac2ba01b9e2eae1736c76a33 (patch)
tree53178af819fbfcd28a6cf05321eb0715080bc532 /source3/utils/status_profile.c
parent296b450f16dd45e01d4c495ca085c16e1894adc6 (diff)
downloadsamba-1888bb4fd98138b2ac2ba01b9e2eae1736c76a33.tar.gz
samba-1888bb4fd98138b2ac2ba01b9e2eae1736c76a33.tar.bz2
samba-1888bb4fd98138b2ac2ba01b9e2eae1736c76a33.zip
r18949: use sys_usleep()
metze (This used to be commit f9944941415b88559b67f6c7e780e364d5030240)
Diffstat (limited to 'source3/utils/status_profile.c')
-rw-r--r--source3/utils/status_profile.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/utils/status_profile.c b/source3/utils/status_profile.c
index 9de89d563f..811279b3a4 100644
--- a/source3/utils/status_profile.c
+++ b/source3/utils/status_profile.c
@@ -409,11 +409,6 @@ BOOL status_profile_dump(BOOL verbose)
#ifdef WITH_PROFILE
-static void sample_delay(int delay_msec)
-{
- poll(NULL, 0, delay_msec);
-}
-
/* Convert microseconds to milliseconds. */
#define usec_to_msec(s) ((s) / 1000)
/* Convert microseconds to seconds. */
@@ -526,7 +521,7 @@ BOOL status_profile_rates(BOOL verbose)
(unsigned long )usec_to_msec(remain_usec));
}
- sample_delay(usec_to_msec(remain_usec));
+ sys_usleep(remain_usec);
}
}