7961614621bd2ac2c38a77a7094c79410e519543 hiram Sun May 1 21:45:44 2011 -0700 beginning to get some measurements, watch out for divide by zero diff --git src/inc/udc.h src/inc/udc.h index 2fe7c37..464d631 100644 --- src/inc/udc.h +++ src/inc/udc.h @@ -123,16 +123,21 @@ unsigned long udcCacheAge(char *url, char *cacheDir); /* Return the age in seconds of the oldest cache file. If a cache file is * missing, return the current time (seconds since the epoch). */ 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). */ 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). */ time_t udcUpdateTime(struct udcFile *udc); /* return udc->updateTime */ +#ifdef PROGRESS_METER +off_t remoteFileSize(char *url); +/* fetch remote file size from given URL */ +#endif + #endif /* UDC_H */