Changeset 1502

Show
Ignore:
Timestamp:
04/09/08 16:13:37 (5 months ago)
Author:
mbriggs
Message:

Fixed potential div by 0

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hive/trunk/data_webapp/app/helpers/data_helper.rb

    r1501 r1502  
    2323    # Try to prevent compromise line from hiding url line 
    2424    clients_max = client_pts.max*3 
     25    unless clients_max > 0 
     26      clients_max = 6 
     27    end 
    2528    client_pts.each_index {|i| client_pts[i] = client_pts[i]*(urls_max/clients_max)} 
    2629