om

om - the most recently modified file in a directory
git clone git://git.larryhynes.net/om
Log | Files | Refs | README | LICENSE

commit 8eada13ccb20777730782aaa98e7622240f1b709
parent 7ac90e4a6b4a50302fed8f847363409908b5ad6b
Author: Larry Hynes <larry@larryhynes.com>
Date:   Tue,  4 Jul 2017 16:50:21 +0100

Remove second stat in om()

Diffstat:
om.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/om.c b/om.c @@ -71,7 +71,6 @@ om() if (S_ISREG(sb.st_mode)) { c++; - stat(buf, &sb); if (sb.st_mtime > mtime) { len = strlcpy(res, ent->d_name, sizeof(res)); if (len >= sizeof(res))