Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dashboard - prevent a divide by zero
  • Loading branch information
jlsherrill committed Oct 5, 2011
1 parent a062e94 commit fd9883c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/helpers/dashboard_helper.rb
Expand Up @@ -79,6 +79,7 @@ def products_synced

def sync_percentage(product)
stat =product.sync_status.progress
return 0 if stat.total_size == 0
(stat.total_size - stat.size_left)*100/stat.total_size
end

Expand Down

0 comments on commit fd9883c

Please sign in to comment.