Skip to content

Commit

Permalink
Merge pull request #564 from greenbone/mergify/bp/gvm-libs-21.04/pr-561
Browse files Browse the repository at this point in the history
Do not send unnecessary message (backport #561)
  • Loading branch information
ArnoStiefvater authored Jul 14, 2021
2 parents 849da74 + b305842 commit 1432184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Deprecated
### Removed
### Fixed
- Fix info msg when 0 alive hosts are left to scan and max_scan_hosts limit is reached. No message will be generated for that case anymore. [#561](https://github.com/greenbone/gvm-libs/pull/561)

[Unreleased]: https://github.com/greenbone/gvm-libs/compare/v20.8.2...gvm-libs-20.08

Expand Down
5 changes: 4 additions & 1 deletion boreas/boreas_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ get_host_from_queue (kb_t alive_hosts_kb, gboolean *alive_deteciton_finished)

num_not_scanned_hosts =
get_alive_hosts_count () - get_max_scan_hosts ();
send_limit_msg (num_not_scanned_hosts);
if (0 != num_not_scanned_hosts)
{
send_limit_msg (num_not_scanned_hosts);
}
}
g_debug ("%s: Boreas already finished scanning and we reached the "
"end of the Queue of alive hosts.",
Expand Down

0 comments on commit 1432184

Please sign in to comment.