From 690478d4084f9d573072c805fbe93543ac959181 Mon Sep 17 00:00:00 2001 From: Dan White Date: Tue, 15 Nov 2016 13:46:24 -0600 Subject: [PATCH] better timeSampler system --- TimeSampleHistogram | 3 ++- cleanup-timesamples | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TimeSampleHistogram b/TimeSampleHistogram index deb6c87..1642dc7 100755 --- a/TimeSampleHistogram +++ b/TimeSampleHistogram @@ -146,7 +146,8 @@ else: # files = [f for f in os.listdir(os.environ['HOME']) if f.startswith('.timeSampler') and not - (f.endswith('.gz') + (f.endswith('.pid') + or f.endswith('.gz') or f.endswith('.all') or f.endswith('.tmp'))] diff --git a/cleanup-timesamples b/cleanup-timesamples index 364efca..5e4ff4b 100755 --- a/cleanup-timesamples +++ b/cleanup-timesamples @@ -13,7 +13,7 @@ TMPFILE="$SAMPLES.tmp" if [ "$1" = "-s" ]; then echo "Sorting entries first." - sleep 0.3 + sleep 0.05 sort -u $SAMPLES > $TMPFILE cp $TMPFILE $SAMPLES shift -- 2.25.1