summaryrefslogtreecommitdiff
path: root/usr.bin/locate
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2008-09-02 02:59:38 +0000
committerKevin Lo <kevlo@FreeBSD.org>2008-09-02 02:59:38 +0000
commit4c6ea66f4416bb0f86c9abe5b4af5c8bf5e8ac25 (patch)
tree5bf24fb960e4802f7e5727ace6f280d15d63cc2a /usr.bin/locate
parent1f0e597d5ab93d44f0ab686f1644d7e32c9ad444 (diff)
Notes
Diffstat (limited to 'usr.bin/locate')
-rw-r--r--usr.bin/locate/locate/locate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/locate/locate/locate.c b/usr.bin/locate/locate/locate.c
index 64ce7f95d472e..d7529fbd88a22 100644
--- a/usr.bin/locate/locate/locate.c
+++ b/usr.bin/locate/locate/locate.c
@@ -325,7 +325,7 @@ cputime ()
{
struct rusage rus;
- getrusage(0, &rus);
+ getrusage(RUSAGE_SELF, &rus);
return(rus.ru_utime.tv_sec * 1000 + rus.ru_utime.tv_usec / 1000);
}
#endif /* DEBUG */