Commit 4ac3a550 authored by Kirill Smelkov's avatar Kirill Smelkov

X neotest: Don't use bc

bc is marked as optional in Debian and I just hit a machine where it is
not installed. Python might be also not installed but we depend on
python in many more places so using it instead of bc reduces the
probability `neotest info-local` won't work on a fresh machine.
parent e795c6ed
......@@ -466,8 +466,7 @@ proginfo() {
# fkghz file - extract value from file (in KHz) and render it as GHz
fkghz() {
v=$(echo "scale=2; `cat $1` / 1000000" |bc -l)
echo "${v}GHz"
python -c "print '%.2fGHz' % (`cat $1` / 1E6)"
}
# lspci1 <pcidev> <field> - show <field> from lspci information about <pcidev>
......
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