From f74f2f05d70e3195a31be49a522faab13c786c20 Mon Sep 17 00:00:00 2001 From: bmenrigh Date: Wed, 25 Feb 2009 01:27:35 +0000 Subject: [PATCH] Cast a double seconds into time_t to eliminate a compiler warning that was showing up for my x86_64 box. --- timing.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timing.cc b/timing.cc index daa2f6b47..bf1466fc3 100644 --- a/timing.cc +++ b/timing.cc @@ -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;