From 1583b87ae607ab7162a24c7f67091fccc487c1c7 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 7 Feb 2009 19:33:07 +0000 Subject: [PATCH] And again. --- osdep-freebsd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/osdep-freebsd.c b/osdep-freebsd.c index 556235e6..ef456422 100644 --- a/osdep-freebsd.c +++ b/osdep-freebsd.c @@ -1,4 +1,4 @@ -/* $Id: osdep-freebsd.c,v 1.7 2009-02-07 19:27:11 nicm Exp $ */ +/* $Id: osdep-freebsd.c,v 1.8 2009-02-07 19:33:07 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -22,7 +22,6 @@ #include #include #include -#include #include #include @@ -92,8 +91,7 @@ retry: bestp = p; if (p->ki_slptime < bestp->ki_slptime) bestp = p; - if (timercmp(&p->ki_rusage_ch, &bestp->ki_rusage_ch, <)) - bestp = p; + /* XXX children? */ } if (bestp != NULL) { procname = get_proc_argv0(bestp->ki_pid);