044b178ab81d6bf91356f74812af4ecfc9bff212 hiram Tue Feb 8 11:54:30 2011 -0800 consolidate the display of data last updated printout for hgc clicks, now working for most bbi types diff --git src/lib/udc.c src/lib/udc.c index 1996b73..cc6574b 100644 --- src/lib/udc.c +++ src/lib/udc.c @@ -1433,15 +1433,30 @@ int udcCacheTimeout() /* Get cache timeout (if local cache files are newer than this many seconds, * we won't ping the remote server to check the file size and update time). */ { return cacheTimeout; } void udcSetCacheTimeout(int timeout) /* Set cache timeout (if local cache files are newer than this many seconds, * we won't ping the remote server to check the file size and update time). */ { cacheTimeout = timeout; } + +time_t udcUpdateTime(struct udcFile *udc) +/* return udc->updateTime */ +{ +if (sameString("transparent", udc->protocol)) + { + struct stat status; + int ret = stat(udc->url, &status); + if (ret < 0) + return 0; + else + return status.st_mtime; + } +return udc->updateTime; +}