Change number of digits to match gauge max value

Currently, the number of digits is hard-coded to 3. This isn't suitable when the maximum gauge value needs more than three digits.
With no option to configure the number of digits, this should offer better default behaviour
Merge pull request #4 from roywes/patch-1

Change number of digits to match gauge max value