Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I did

~/pythonsource1/python2.6-2.6.5$ find -D rates . -type d

and got

Predicate success rates after completion:
[need type] -type d [0.4] [280/4350=0.0643678] -a [0.4] [280/4350=0.0643678] -print [1] [280/280=1] 

What does the [0.4] indicate ?

share|improve this question
add comment

migrated from stackoverflow.com May 18 '11 at 16:48

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 4 down vote accepted

Judging from the source code, the numbers in square brackets are the a priori estimated success rate for a given predicate. That is, the first [0.4] is an estimate of the probability that the -type d will evaluate to true. It may be used to determine the order in which the terms of the predicate are evaluated. You can find more in findutils-4.4.2/find/parser.c, findutils-4.4.2/find/tree.c and findutils-4.4.2/find/pred.c.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.