summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
authorroot <root>2009-06-06 19:57:22 +0000
committerroot <root>2009-06-06 19:57:22 +0000
commit5fada89f0fcdcacfb7db5d25713b77782b7a485f (patch)
tree69ccd73f2586ddd781dd240a55ed59c7d764cb01 /eio.c
parentb7b35d77a0bd68366dae48d86554f9c58b644e69 (diff)
*** empty log message ***
Diffstat (limited to 'eio.c')
-rw-r--r--eio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eio.c b/eio.c
index bc73493..f4728a7 100644
--- a/eio.c
+++ b/eio.c
@@ -1201,7 +1201,7 @@ eio__scandir (eio_req *req, etp_worker *self)
if (*name == '.') /* leading dots are likely directories, and, in any case, rare */
ent->score = 98;
else if (!strchr (name, '.')) /* absense of dots indicate likely dirs */
- ent->score = len <= 2 ? len + 60 : len <= 4 ? 50 : len <= 7 ? 40 : 10; /* shorter == more likely dir, but avoid too many classes */
+ ent->score = len <= 2 ? len + 6 : len <= 4 ? 5 : len <= 7 ? 4 : 1; /* shorter == more likely dir, but avoid too many classes */
}
else if (ent->type == EIO_DT_DIR)
ent->score = 100;