View Single Post
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#550
You missed the 100% like coderus so correctly corrected me.

Your script is printing

Code:
{{yellow}} 100% {{=0.100}}
when the signal strength is a 100%.

You'll have to handle this special case like coderus shows here.

Code:
if [[ $status -eq 100 ]]
then echo -n "{{=1.0}}"
else echo -n "{{=0.$status}}"
fi

Last edited by slarti; 2013-01-24 at 21:37.
 

The Following User Says Thank You to slarti For This Useful Post: