summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-06-06 12:12:14 +0200
committerJakob Unterwurzacher2020-06-06 12:15:41 +0200
commita56e7cc5ac3ede528aaa05f912c865b09e942de4 (patch)
treebb08115b41a8cb06f4695cc16a03c34bb3c374e2
parent274e0d27b711fdabd5a4340335017ee862c30290 (diff)
sshfs-benchmark.bash: fix locale trouble and move to tests
Locale trouble was sshfs-benchmark.bash: line 31: printf: 4.71: invalid number because printf expected "4,71" in the German locale. Force the C locale.
-rwxr-xr-xtests/sshfs-benchmark.bash (renamed from contrib/sshfs-benchmark.bash)2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/sshfs-benchmark.bash b/tests/sshfs-benchmark.bash
index 646262a..13c7a0f 100755
--- a/contrib/sshfs-benchmark.bash
+++ b/tests/sshfs-benchmark.bash
@@ -28,7 +28,7 @@ function prepare_mounts {
function etime {
T=$(/usr/bin/time -f %e -o /dev/stdout "$@")
- printf %20.2f "$T"
+ LC_ALL=C printf %20.2f "$T"
}
MYNAME=$(basename "$0")