diff --git a/bashtop b/bashtop index 27f00b7..a7965e9 100755 --- a/bashtop +++ b/bashtop @@ -750,8 +750,9 @@ get_value() { #? Get a value from a file, variable or array by searching for a n done fi - if [[ -n $int && $found =~ . ]]; then - found=${found%.*} + if [[ -n $int && $found =~ [.|,] ]]; then + found="${found/,/.}" + printf -v found "%.0f" "${found}" fi if [[ -n $math && -n $int ]]; then