Re: [evolution-patches] (groupwise provider) change in modification time




Please use time(0) rather than g_get_current_time().

Also, rather than using a static variable which wont be thread-safe, just call time(0) before calling gmtime().

This code then seems redundant  (its stating of the summary doesn't seem that useful anyway).

if (!mod_time) {
cache_file_name = g_strdup (folder->summary->summary_path) ;
stat (cache_file_name, &buf) ;
mod_time = buf.st_mtime ;
g_free (cache_file_name) ;
}

tm = gmtime (&mod_time) ;

On Wed, 2005-02-16 at 15:55 +0530, Parthasarathi Susarla wrote:
Hi,
this patch updates the modification time that is sent with each
getQuickMessage request.

thanks,
partha


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]