1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-07 06:59:03 +00:00

Use TIMEVAL_FSEC_SUBTRACT for clarity

This commit is contained in:
dmiller
2024-02-26 18:29:10 +00:00
parent f5634144c6
commit e7f8cd820b
4 changed files with 10 additions and 10 deletions

View File

@@ -1171,7 +1171,7 @@ int UltraScanInfo::removeCompletedHosts() {
if (remain && !timedout)
log_write(LOG_STDOUT, "Completed %s against %s in %.2fs (%d %s)\n",
scantype2str(scantype), hss->target->targetipstr(),
TIMEVAL_MSEC_SUBTRACT(now, SPM->begin) / 1000.0, remain,
TIMEVAL_FSEC_SUBTRACT(now, SPM->begin), remain,
(remain == 1) ? "host left" : "hosts left");
else if (timedout)
log_write(LOG_STDOUT, "%s timed out during %s (%d %s)\n",