projects
/
pubbin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82f7831
)
always sort samples
author
Dan White
<dan@whiteaudio.com>
Mon, 18 Jan 2021 16:22:07 +0000
(10:22 -0600)
committer
Dan White
<dan@whiteaudio.com>
Mon, 18 Jan 2021 16:22:44 +0000
(10:22 -0600)
cleanup-timesamples
patch
|
blob
|
history
diff --git
a/cleanup-timesamples
b/cleanup-timesamples
index ba8852dde045a2b2b5f386c6d2cdb2faddd2baae..4d7e39abfcfe071e369154288ca2bb4d687da9ef 100755
(executable)
--- a/
cleanup-timesamples
+++ b/
cleanup-timesamples
@@
-16,7
+16,7
@@
if true || [ "$1" = "-s" ]; then
sleep 0.05
sort -u $SAMPLES > $TMPFILE
cp $TMPFILE $SAMPLES
- shift
+
#
shift
fi
@@
-26,8
+26,8
@@
vim $SAMPLES
if [ "$1" = "-c" ]; then
echo "Cleaning and sorting timeSamples from this host ($HOSTNAME)."
- grep -v "null$" "$
HOME/.timeSampler.$HOSTNAME" | sort -u > $f.tmp
- cp $
f.tmp $f
+ grep -v "null$" "$
SAMPLES" | sort -u > $TMPFILE
+ cp $
TMPFILE $SAMPLES
fi