Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Fix scan progress. #47

Merged
merged 2 commits into from
Oct 1, 2018
Merged

Fix scan progress. #47

merged 2 commits into from
Oct 1, 2018

Conversation

jjnicola
Copy link
Member

  • osdp/misc.py: Add 'target_progress' to scan_info dict to store the
    single target progress. Add set_target_progress() to store the scan
    progress of a target. Add get_target_progress().

  • ospd/ospd.py: check_pending_target() handles the case in which the
    progress is not set from the wrapper for a single target, it will be
    automatically set if the target scan finished.
    Add calculate_progress(); it is the average of the target progress.

Add unit test for scan progress

@jjnicola jjnicola requested a review from a team September 28, 2018 14:08
* osdp/misc.py: Add 'target_progress' to scan_info dict to store the
single target progress. Add set_target_progress() to store the scan
progress of a target. Add get_target_progress().

* ospd/ospd.py: check_pending_target() handles the case in which the
progress is not set from the wrapper for a single target, it will be
automatically set if the target scan finished.
Add calculate_progress(); it is the average of the target progress.
@jjnicola jjnicola merged commit 7404f6b into greenbone:master Oct 1, 2018
@jjnicola jjnicola deleted the progress branch October 2, 2018 07:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants