Exception in Rails

I used to get a lot of FloatDomainError exceptions with rails.
Seems like the problem is with
vendor/actionpack/lib/action_controller/benchmarking.rb.

Changing line 46 from:
  " | DB: #{sprintf("%f", db_runtime)} (#{sprintf("%d",
db_percentage)}%)"

To:
  begin
    " | DB: #{sprintf("%f", db_runtime)} (#{sprintf("%d",
db_percentage)}%)"
  rescue
    " | DB: #{db_runtime} (#{db_percentage}%)"
  end

Seems to work.

Cheers,
Assaph

ps. Using Rails 0.5.7 with SQLite on WinXP.
Full exception details:

FloatDomainError in People#list

NaN

.vendor/actionpack/lib/action_controller/benchmarking.rb:47:in `sprintf'
.vendor/actionpack/lib/action_controller/benchmarking.rb:47:in
`active_record_runtime'
.vendor/actionpack/lib/action_controller/benchmarking.rb:33:in
`perform_action_without_filters'
.vendor/actionpack/lib/action_controller/filters.rb:221:in
`perform_action_without_rescue'
.vendor/actionpack/lib/action_controller/rescue.rb:63:in
`perform_action'
.vendor/actionpack/lib/action_controller/base.rb:251:in `process'
.vendor/actionpack/lib/action_controller/base.rb:232:in `process'
.vendor/railties/dispatcher.rb:46:in `dispatch'
.vendor/railties/dispatcher.rb:41:in `rescue_errors'
.vendor/railties/dispatcher.rb:47:in `dispatch'
./dispatch.rb:5
/dispatch.rb:1:in `load'
/dispatch.rb:1
-:9