Remove redundant variable
This commit is contained in:
parent
96727415b9
commit
2d8453ed21
|
@ -368,8 +368,7 @@ calcWidth() {
|
|||
|
||||
calcHeight() {
|
||||
newlines=$(echo -ne | grep -c $'\n')
|
||||
chars=${#1}
|
||||
height=$(echo "$chars" "$newlines" | awk '{
|
||||
height=$(echo "${#1}" "$newlines" | awk '{
|
||||
x = (($1 - $2 + ($2 * 60)) / 60)
|
||||
printf "%d", (x == int(x)) ? x : int(x) + 1
|
||||
}')
|
||||
|
|
Loading…
Reference in New Issue