-# Only proceed if no files have changed in the past $cmin minutes
-if(! $opt_f) {
- $changed_files_found=`$find_changed_cmd`;
- if($changed_files_found) { exit 0; }
+# Only proceed if we are skipping this check or if the $srcpathname dir hasn't been modified in the last $minage minutes
+if(! $opt_f && ((time - (stat("$srcpathname"))->mtime) < ($minage * 60))) {
+ exit 0;