# File lib/powerbar.rb, line 277 def percent return 0.0 if state.total.is_a? Symbol state.done.to_f/state.total*100 end