Changeset 19567 for trunk/DataCheck/Tools
- Timestamp:
- 07/24/19 00:06:33 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Tools/fill_r750.sh
r19496 r19567 4 4 sqlpw=/home/$USER/.mysql.pw.op 5 5 dbname=factdata 6 #doupdate=92 6 7 7 8 query="SELECT Max(fPeriod) FROM RunInfo WHERE NOT ISNULL(fR750Cor)" … … 12 13 pmaxref=`mysql --defaults-file=$sqlpw -s -e "$query" ` 13 14 echo "fR750Ref is already filled up to P"$pmaxref 15 16 if [ "$doupdate" == "" ] 17 then 18 numstart=$pmaxref 19 else 20 numstart=$doupdate 21 fi 14 22 15 23 … … 26 34 query=$query" fR750Cor=round(fNumThreshold750/("$min")/("$cor"),2) " 27 35 query=$query" WHERE fRunTypeKey=1 AND NOT (("$min")/("$cor"))=0 " 28 query=$query" AND fPeriod>="$ pmaxcor36 query=$query" AND fPeriod>="$numstart 29 37 echo $query 30 38 mysql --defaults-file=$sqlpw -s -e "$query" … … 123 131 251.9 #90 124 132 249.4 #91 125 240.0 #92 (current period) 133 241.8 #92 134 244.3 #93 135 240.9 #94 136 240.1 #95 126 137 ) 127 138 if [ ${#rates[@]} -lt $pmaxref ] 128 139 then 129 140 ${#rates[@]}" "$pmaxref 141 "No new reference values available ("$pmaxref")" 130 142 exit 131 143 fi 132 133 if [ "$doupdate" == "yes" ]134 then135 numstart=0136 else137 numstart=$pmaxref138 fi139 144 140 145 # fill reference values 141 146 echo "" 142 147 echo "Filling the reference values for the corrected R750 for "${#rates[@]}" periods to the DB..." 148 echo " Starting from period "$numstart 143 149 for (( i=$numstart; i < ${#rates[@]} ; i++)) 144 150 do
Note:
See TracChangeset
for help on using the changeset viewer.