Skip to content
Snippets Groups Projects
Commit ad1e0a2d authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

small enhancement in ph.toUnit

parent 54c44ce6
Branches
No related tags found
1 merge request!2046784 detect multiple systemd instances
...@@ -330,7 +330,7 @@ function ph.toUnit(){ ...@@ -330,7 +330,7 @@ function ph.toUnit(){
test $_digits -gt 0 && _dots=$( yes "." 2>/dev/null | head -$_digits | tr -d "\n" ) test $_digits -gt 0 && _dots=$( yes "." 2>/dev/null | head -$_digits | tr -d "\n" )
test $_digits -gt 0 && _bc+=" -l | grep -o '.*\\.${_dots}'" test $_digits -gt 0 && _bc+=" -l | grep -o '.*\\.${_dots}'"
echo "$(echo "$_value" | tr -d "[:alpha:]" )*${_multiply}/$_divisor" | eval "$_bc" | sed "s#^\.#0.#" echo "$(echo "$_value" | tr -d "[:alpha:]" )*( ${_multiply}/$_divisor )" | eval "$_bc" | sed "s#^\.#0.#"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment