Skip to content

Commit

Permalink
rename plot_jobs to plot-jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu Fengguang committed Jan 19, 2012
1 parent e57a847 commit 01af0bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions plot-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ plot_dir() {

while true
do
for file in $BASE_DIR/plot_jobs/*
for file in $BASE_DIR/plot-jobs/*
do
if [[ -f "$file" ]]; then
dir=$(<$file)
rm $file || continue # someone else took the job?
plot_dir $dir
for d in $dir; do
plot_dir $d
done
fi
done

Expand Down
4 changes: 2 additions & 2 deletions trace-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ post_processing() {

if (( $PLOT_IN_TESTBOX == 0 )); then
sync
mkdir -p $BASE_DIR/plot_jobs/
plot_job=$BASE_DIR/plot_jobs/$(hostname)-$(date +'%F-%T')
mkdir -p $BASE_DIR/plot-jobs/
plot_job=$BASE_DIR/plot-jobs/$(hostname)-$(date +'%F-%T')
echo $PWD > $plot_job
chmod g+w $plot_job
else
Expand Down

0 comments on commit 01af0bc

Please sign in to comment.