projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1fcec3
)
eclass/tests/eapi7-ver_benchmark: More readable average
author
Michał Górny
<mgorny@gentoo.org>
Tue, 19 Sep 2017 13:13:04 +0000
(15:13 +0200)
committer
Michał Górny
<mgorny@gentoo.org>
Tue, 19 Sep 2017 13:15:09 +0000
(15:15 +0200)
eclass/tests/eapi7-ver_benchmark.sh
patch
|
blob
|
history
diff --git
a/eclass/tests/eapi7-ver_benchmark.sh
b/eclass/tests/eapi7-ver_benchmark.sh
index 7e3c830fcb75cdac4e42aace25f080dbbc84648c..1de26444c9b3d562cb21ea4a5f90dae01f084ea4 100755
(executable)
--- a/
eclass/tests/eapi7-ver_benchmark.sh
+++ b/
eclass/tests/eapi7-ver_benchmark.sh
@@
-100,7
+100,7
@@
get_times() {
sum=$(dc -e "${!vr} + + + + 3 k 5 / p")
vr="${v}[@]"
- printf '%s %4.2f %4.2f %4.2f %4.2f %4.2f
%4.2f
\n' \
+ printf '%s %4.2f %4.2f %4.2f %4.2f %4.2f
=> %4.2f avg
\n' \
"${v}" "${!vr}" "${sum}"
done
}