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:
parent
d07921eca5
commit
d5afe2b1fa
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ for target in $(find . -name 'start_*' -printf '%f\n') ; do
|
||||||
start_seconds=$(cat $target)
|
start_seconds=$(cat $target)
|
||||||
stop_seconds=$(cat $stop_file)
|
stop_seconds=$(cat $stop_file)
|
||||||
duration=$(python -c "print $stop_seconds - $start_seconds")
|
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
|
done
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
rm -rf $PROFILE_DIR
|
rm -rf $PROFILE_DIR
|
||||||
|
|
Loading…
Reference in a new issue