Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send duplicated hosts as dead hosts to ospd, to adjust scan progress calculation #586

Merged
merged 2 commits into from
Aug 25, 2020

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Aug 21, 2020

Duplicated hosts are removed from the list and ospd-openvas
needs to know that less hosts will be scanned, for the scan progress
calculation. Sent the amount of duplicated hosts as dead hosts to not
be taken in account.

Depends on PR greenbone/gvm-libs#387

@rgrewe
Copy link
Member

rgrewe commented Aug 21, 2020

Why calling the function twice and not save it in a variable?

@jjnicola
Copy link
Member Author

Why calling the function twice and not save it in a variable?

The function just access a variable. It doesn't do any extra process. If you think it can improved the code readability, I can change it.

@rgrewe
Copy link
Member

rgrewe commented Aug 21, 2020

Just a hint. It's up to you. ;-)

…calculation.

Duplicated hosts are removed from the list and ospd-openvas
needs to know that less hosts will be scanned, for the scan progress
calculation. Sent the amount of duplicated hosts as dead hosts to not
be taken in account.
@jjnicola jjnicola marked this pull request as ready for review August 24, 2020 08:02
@jjnicola jjnicola merged commit bf72833 into greenbone:openvas-20.08 Aug 25, 2020
@jjnicola jjnicola deleted the resolve branch August 25, 2020 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants