Skip to content

Commit

Permalink
Use test_alive_hosts_only to print the log summary
Browse files Browse the repository at this point in the history
This helps for the case with 0 alive hosts.
  • Loading branch information
janowagner committed May 7, 2020
1 parent 7b55ecf commit 36e9221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ attack_network (struct scan_globals *globals, kb_t *network_kb)
plugins_scheduler_free (sched);

gettimeofday (&now, NULL);
if (alive_hosts_list)
if (test_alive_hosts_only)
g_message ("Vulnerability scan %s finished in %ld seconds: "
"%d alive hosts of %d",
globals->scan_id, now.tv_sec - then.tv_sec,
Expand Down

0 comments on commit 36e9221

Please sign in to comment.