mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
aa97b79e4c
commit
f74f2f05d7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue