From 00298a4064b52cefa42394f5656dc7e244c69c38 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Fri, 7 Nov 2003 02:06:47 +0000 Subject: [PATCH] fixed warning svn path=/trunk/boinc/; revision=2640 --- client/app.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/app.C b/client/app.C index c103588cd5..ff7932fbb4 100644 --- a/client/app.C +++ b/client/app.C @@ -1113,7 +1113,7 @@ int ACTIVE_TASK_SET::restart_tasks() { int ACTIVE_TASK::get_cpu_time_via_shmem(double now) { char msg_buf[SHM_SEG_SIZE]; if (app_client_shm.get_msg(msg_buf, APP_CORE_WORKER_SEG)) { - last_status_msg_time = now; + last_status_msg_time = (time_t)now; fraction_done = current_cpu_time = checkpoint_cpu_time = 0.0; parse_double(msg_buf, "", fraction_done); parse_double(msg_buf, "", current_cpu_time); @@ -1126,7 +1126,7 @@ int ACTIVE_TASK::get_cpu_time_via_shmem(double now) { recent_change = 0; } else { recent_change += (fraction_done - last_frac_done); - int tdiff = now-last_frac_update; + int tdiff = (int)(now-last_frac_update); if (tdiff>0) { double recent_frac_rate_of_change = max(0.0, recent_change) / tdiff; if (frac_rate_of_change == 0) {