From b489c78dcd2cb0bbc6daacda826a90dd3b025290 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 14 Jan 2011 12:54:02 +0000 Subject: fix matching files for last 2 days only --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 8e17d1b..3eeb40f 100644 --- a/index.php +++ b/index.php @@ -32,7 +32,7 @@ shell_exec('grep -v mga src.txt > src.mdv.txt'); chdir($upload_dir); -$all_files = shell_exec("find \( -name '*.rpm' -o -name '*.src.rpm.info' -o -name '*.youri' -o -name '*.lock' -o -name '*.done' \) ! -ctime $max_modified"); +$all_files = shell_exec("find \( -name '*.rpm' -o -name '*.src.rpm.info' -o -name '*.youri' -o -name '*.lock' -o -name '*.done' \) -ctime -$max_modified"); preg_match_all("!^\./(\w+)/((\w+)/(\w+)/(\w+)/(\d+)\.(\w+)\.(\w+)\.(\d+))_?(.+)(\.src\.rpm(?:\.info)?|\.youri|\.lock|\.done)$!m", $all_files, $matches, PREG_SET_ORDER); -- cgit v1.2.1