Commit a92811e7 authored by Bernd Machenschalk's avatar Bernd Machenschalk
Browse files

make the check work for different locales

Original: b563d4c7a524abd792b929c2bf5c50f2229b98eb
parent d278868a
......@@ -99,9 +99,9 @@ ic1="1"
while [ "$ic1" -le "$Nsegments" ];
do
t0=$tmpTime
t1=`echo $t0 $Tsegment | awk '{print $1 + $2}'`
TspanHours=`echo $Tsegment | awk '{printf "%.7f", $1 / 3600.0 }'`
NSFT=`echo $Tsegment $Tsft | awk '{print int(2.0 * $1 / $2 + 0.5) }'`
t1=`echo $t0 $Tsegment | LC_ALL=C awk '{print $1 + $2}'`
TspanHours=`echo $Tsegment | LC_ALL=C awk '{printf "%.7f", $1 / 3600.0 }'`
NSFT=`echo $Tsegment $Tsft | LC_ALL=C awk '{print int(2.0 * $1 / $2 + 0.5) }'`
echo "$t0 $t1 $TspanHours $NSFT" >> $segFile
segs[${ic1}]=$tmpTime # save seg's beginning for later use
echo "Segment: "$ic1" of "$Nsegments" GPS start time: "${segs[${ic1}]}
......@@ -114,7 +114,7 @@ do
ic2=$(echo "scale=0; ${ic2} + ${Tsft}" | bc)
done
tmpTime=$(echo "scale=0; ${tmpTime} + ${seggap}" | bc | awk '{printf "%.0f",$1}')
tmpTime=$(echo "scale=0; ${tmpTime} + ${seggap}" | bc | LC_ALL=C awk '{printf "%.0f",$1}')
ic1=$(echo "scale=0; ${ic1} + 1" | bc)
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment