1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31: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:
bmenrigh
2009-02-25 01:27:35 +00:00
parent aa97b79e4c
commit f74f2f05d7

View File

@@ -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;