Set locale for the profiling printf command

When LC_NUMERIC is set to a format that doesn't use a decimal point,
`printf` will fail.

Change-Id: Ie6c4d075928f47b17cc413d537fc31c9d0734bdb
Signed-off-by: Tomas Sedovic <tsedovic@redhat.com>
This commit is contained in:
Tomas Sedovic 2013-09-30 12:10:07 +02:00
parent d07921eca5
commit d5afe2b1fa

View File

@ -94,7 +94,7 @@ for target in $(find . -name 'start_*' -printf '%f\n') ; do
start_seconds=$(cat $target)
stop_seconds=$(cat $stop_file)
duration=$(python -c "print $stop_seconds - $start_seconds")
printf "%-40s %10.3f\n" ${target##start_} $duration
LC_NUMERIC=C printf "%-40s %10.3f\n" ${target##start_} $duration
done
popd > /dev/null
rm -rf $PROFILE_DIR