Module: MemoryTracker::DashboardsHelper
- Defined in:
- app/helpers/memory_tracker/dashboards_helper.rb
Instance Method Summary collapse
Instance Method Details
#display_num(val, num) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/helpers/memory_tracker/dashboards_helper.rb', line 7 def display_num(val, num) f = val.to_f / num if f > 1000 f.to_i else '%.3f' % (val.to_f/num) end end |
#link_to_dashboards(name) ⇒ Object
3 4 5 |
# File 'app/helpers/memory_tracker/dashboards_helper.rb', line 3 def link_to_dashboards(name) link_to(name, memory_tracker.dashboards_path(:sort_by => name)) end |