Changeset e68c306


Ignore:
Timestamp:
08/28/2021 08:50:40 PM (3 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, legacy, trunk
Children:
b5d1c50
Parents:
52cced4
Message:

Add the -j value to the sbu report

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/create-sbu_du-report.sh

    r52cced4 re68c306  
    6060SBU_UNIT=`sed -n 's/^Totalseconds:\s\([[:digit:]]*\)$/\1/p' $BASELOG`
    6161popd
    62 echo -e "\nThe SBU unit value is equal to $SBU_UNIT seconds.\n"
    63 echo -e "\n\n$LINE\n\nThe SBU unit value is equal to $SBU_UNIT seconds.\n" >> "$REPORT"
     62# Get the -j value of the SBU
     63if [ $(sed -n '/REALSBU/s/.*\([yn]\).*/\1/p' "$REPORT") = y ]; then
     64    J_VALUE="1"
     65else
     66    J_VALUE=$(sed -n '/N_PARALLEL/s/.*<\([^>]*\).*/\1/p' "$REPORT")
     67fi
     68echo -e "\nThe SBU unit value is equal to $SBU_UNIT seconds at -j$J_VALUE.\n"
     69echo -e "\n\n$LINE\n\nThe SBU unit value is equal to $SBU_UNIT seconds at -j$J_VALUE.\n" >> "$REPORT"
    6470
    6571# Set the first value to 0 for grand totals calculation
Note: See TracChangeset for help on using the changeset viewer.