| Show the call type graph for all numbers - warvox - VoIP based wardialing tool,… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 772b9eccbebf473d60ffe78cd613ff0d2daacf37 | |
| parent 5a5e904aa64833ce0396d91497a3d21971f71854 | |
| Author: HD Moore <[email protected]> | |
| Date: Thu, 5 Mar 2009 14:34:12 +0000 | |
| Show the call type graph for all numbers | |
| Diffstat: | |
| M web/app/controllers/analyze_contro… | 7 ++++++- | |
| 1 file changed, 6 insertions(+), 1 deletion(-) | |
| --- | |
| diff --git a/web/app/controllers/analyze_controller.rb b/web/app/controllers/an… | |
| @@ -19,6 +19,11 @@ class AnalyzeController < ApplicationController | |
| :per_page => 10, | |
| :conditions => [ 'completed = ? and processed = ? and busy = ?… | |
| ) | |
| + | |
| + @results_all = DialResult.find_all_by_dial_job_id( | |
| + @job_id, | |
| + :conditions => [ 'completed = ? and processed = ? and busy = ?… | |
| + ) | |
| @g1 = Ezgraphix::Graphic.new(:c_type => 'col3d', :div_name => 'calls_p… | |
| @g1.render_options(:caption => 'Detected Lines by Type', :y_name => 'L… | |
| @@ -29,7 +34,7 @@ class AnalyzeController < ApplicationController | |
| res_types = {} | |
| res_rings = {} | |
| - @results.each do |r| | |
| + @results_all.each do |r| | |
| res_rings[ r.ringtime ] ||= 0 | |
| res_rings[ r.ringtime ] += 1 | |
| res_types[ r.line_type.capitalize.to_sym ] ||= 0 |