mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Cast a double seconds into time_t to eliminate a compiler warning that was showing up for my x86_64 box.
This commit is contained in:
@@ -587,7 +587,7 @@ bool ScanProgressMeter::printStats(double perc_done,
|
||||
time_left_s = estimate_time_left(perc_done, &begin, now) + 0.5;
|
||||
|
||||
last_est = *now;
|
||||
last_est.tv_sec += time_left_s;
|
||||
last_est.tv_sec += (time_t)time_left_s;
|
||||
|
||||
/* Get the estimated time of day at completion */
|
||||
timet = last_est.tv_sec;
|
||||
|
||||
Reference in New Issue
Block a user