Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Oct 3, 2022
1 parent 3da6b8e commit 47f5646
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/desi_transfer_statistics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#
# Collect (meta) data on files transferred for annual reporting purposes.
#
# Total amount of raw data.
#
year=$1
next_year=$(( year + 1 ))
# fy=${year}1[012][0-9][0-9] ${next_year}0[0-9][0-9][0-9]
Expand All @@ -16,7 +18,7 @@ for n in ${DESI_SPECTRO_DATA}/${year}1[012][0-9][0-9] ${DESI_SPECTRO_DATA}/${nex
echo ${e}
expid=$(basename ${e})
number_of_exposures=$(( number_of_exposures + 1 ))
expid_size=$(du -k -s ${e})
expid_size=$(du -k -s ${e} | awk '{print $1}')
total_data=$(( total_data + expid_size ))
done
done
Expand All @@ -37,7 +39,7 @@ if [[ "${year}" == "2021" ]]; then
for e in ${DESI_SPECTRO_DATA}/${night}/*; do
echo ${e}
expid=$(basename ${e})
expid_size=$(du -k -s ${e})
expid_size=$(du -k -s ${e} | awk '{print $1}')
number_of_fire_exposures=$(( number_of_fore_exposures + 1 ))
total_data=$(( total_fire_data + expid_size ))
done
Expand Down

0 comments on commit 47f5646

Please sign in to comment.