Files

30 lines
1.1 KiB
C
Raw Permalink Normal View History

2025-04-14 21:16:39 -07:00
--- src/attack.c 2025-03-03 04:49:55.000000000 -0800
+++ src/attack.c 2025-04-14 20:09:40.968033000 -0700
2024-01-26 19:47:03 -05:00
@@ -31,7 +31,6 @@
2023-11-04 07:19:31 +01:00
#include "utils.h"
#include <arpa/inet.h> /* for inet_ntoa() */
-#include <bsd/unistd.h>
#include <errno.h> /* for errno() */
#include <fcntl.h>
#include <glib.h>
2025-04-14 21:16:39 -07:00
@@ -1555,14 +1554,14 @@
2023-01-04 08:59:26 +01:00
gettimeofday (&now, NULL);
if (test_alive_hosts_only)
2025-04-14 21:16:39 -07:00
{
- g_message ("Vulnerability scan %s finished in %ld seconds: "
+ g_message ("Vulnerability scan %s finished in %lld seconds: "
"%d alive hosts of %d",
- globals->scan_id, now.tv_sec - then.tv_sec,
+ globals->scan_id, (long long)now.tv_sec - then.tv_sec,
gvm_hosts_count (alive_hosts_list), gvm_hosts_count (hosts));
}
2023-01-04 08:59:26 +01:00
else
- g_message ("Vulnerability scan %s finished in %ld seconds: %d hosts",
- globals->scan_id, now.tv_sec - then.tv_sec,
+ g_message ("Vulnerability scan %s finished in %lld seconds: %d hosts",
+ globals->scan_id, (long long)now.tv_sec - then.tv_sec,
gvm_hosts_count (hosts));
2025-04-14 21:16:39 -07:00
if (prefs_get ("report_scripts"))