search for: bandwidthcontrol

Displaying 1 result from an estimated 1 matches for "bandwidthcontrol".

2008 Apr 08
0
Help building view to pass query to controller
...set @c = 0") find_by_sql("select *, @c FROM healths WHERE router_hostname = ''#{hostname}'' AND created_at >= ''#{start_time}'' AND created_at <= ''#{ end_time}'' HAVING (@c:=@c+1)%12=0 ORDER BY id") end end Controller: class BandwidthController < ApplicationController @@hostname = ''cps-6-elem-2790-rtr-01'' @@start_time = ''2008-04-04 17:000:00'' @@end_time = ''2008-04-04 18:00:00'' ... ... def rtr_bandwidth g = Graph.new @f = Health.sql_select_graph(@@hostname, @@start_time, @@...