diff options
author | root <root> | 2009-06-06 19:57:22 +0000 |
---|---|---|
committer | root <root> | 2009-06-06 19:57:22 +0000 |
commit | 5fada89f0fcdcacfb7db5d25713b77782b7a485f (patch) | |
tree | 69ccd73f2586ddd781dd240a55ed59c7d764cb01 /eio.c | |
parent | b7b35d77a0bd68366dae48d86554f9c58b644e69 (diff) |
*** empty log message ***
Diffstat (limited to 'eio.c')
-rw-r--r-- | eio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |