Skip to content

Commit

Permalink
Merge pull request #561 from ArnoStiefvater/no-empty-send-limit-msg
Browse files Browse the repository at this point in the history
Do not send unnecessary message
  • Loading branch information
ArnoStiefvater authored Jul 14, 2021
2 parents 0d3529a + 91356bd commit 309447b
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 @@ -11,6 +11,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...HEAD

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 309447b

Please sign in to comment.