Changeset 1504

Show
Ignore:
Timestamp:
04/09/08 16:18:13 (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

    r1502 r1504  
    1919    gc.show_legend = false 
    2020 
    21     urls_max = url_pts.max + (1000 - url_pts.max%1000) 
     21    urls_max = url_pts.max  
     22    urls_max += (urls_max > 0 ? (url_pts.max%1000 > 0 ? 1000 - url_pts.max%1000 : 0) : 1000) 
    2223    gc.max_value urls_max 
    2324    # Try to prevent compromise line from hiding url line