Skip to content
Snippets Groups Projects
Commit 78cf7c4b authored by Mark Harrison's avatar Mark Harrison
Browse files

Fix the oldfiles check to actually look for old files and not include old

directories.


git-svn-id: https://labs.omniti.com/resmon/trunk@113 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
parent e91599d1
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ sub handler {
}
# Then look for old files
my $output = cache_command("find $dir -mmin +$minutes | wc -l", 600);
my $output = cache_command("find $dir -type f -mmin +$minutes | wc -l", 600);
chomp($output);
if ($output <= $filecount) {
return "OK", "$output files over $minutes minutes";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment