From afd0bf8982e2cacc2e7045f7cd02e27fbe7655cd Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Tue, 31 Jan 2012 09:16:18 -0700 Subject: [PATCH] rm -rf the oprofile dirs. --- bin/pt-stalk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pt-stalk b/bin/pt-stalk index 17092df6..b54f880e 100755 --- a/bin/pt-stalk +++ b/bin/pt-stalk @@ -1007,7 +1007,7 @@ purge_samples() { # "pt_collect_" here needs to match $CMD_OPCONTROL --save=pt_collect_$p # in collect(). TODO: fix this find "$oprofile_dir" -type d -name 'pt_collect_*' \ - -depth -mtime +$retention_time -exec rm -f '{}' \; + -depth -mtime +$retention_time -exec rm -rf '{}' \; fi }