Package core :: Package controllers :: Package coreHelpers :: Module progress :: Class progress
[hide private]

Class progress



This class keeps track of the progress of something. Mostly used to keeps track of the progress of the w3afCore tests (discovery/audit/etc).


Author: Andres Riancho ( andres.riancho@gmail.com )

Instance Methods [hide private]
 
__init__(self)
 
set_total_amount(self, value)
Set the max value that the progress "bar" will have.
 
inc(self)
Add 1 unit to the current value.
 
_update_eta(self)
 
get_progress(self)
Returns: The % done.
 
stop(self)
This method is called from the core to indicate that the scan process has been stopped by the user, or an error has been found.
 
get_eta(self)
Returns: The ETA for this phase.
Method Details [hide private]

get_progress(self)

 
Returns:
The % done.

get_eta(self)

 
Returns:
The ETA for this phase.