lib/opsicle/monitor/app.rb
# This loop is specifically separate from the screen loop
# because we don't want to spam OpWorks with API calls every second.
This loop is specifically separate from the screen loop
because we don't want to spam OpWorks with API calls every second.
This loop is specifically separate from the screen loop because we don ' t want to spam OpWorks with API calls every second .
def refresh_data_loop
        while @running do
          next unless @screen 
          @screen.refresh_spies
          sleep API_POLLING_INTERVAL
        end
      end
def refresh_data_loop while @running do next unless @screen @screen . refresh_spies sleep API_POLLING_INTERVAL end end
This loop is specifically separate from the screen loop
because we don't want to spam OpWorks with API calls every second.
This loop is specifically separate from the screen loop because we don ' t want to spam OpWorks with API calls every second .
# HACK: only certain test scenarios?