From: Frédéric Marchal Date: Mon, 20 Jul 2009 08:11:35 +0000 (+0000) Subject: Update version date. X-Git-Tag: v2_2_6~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08228821ba7abf6ac522461ed3cb9d47413d9ad2;p=thirdparty%2Fsarg.git Update version date. Add embryo of documentation for conf.h. --- diff --git a/documentation/conf.txt b/documentation/conf.txt new file mode 100644 index 0000000..8658022 --- /dev/null +++ b/documentation/conf.txt @@ -0,0 +1,12 @@ +/*! \file conf.h +\brief Include headers and define global variables. +*/ + +/*! \var DownloadSuffix +A comma separated list of extensions to report as files downloaded by the user. The list is not case sensitive. +*/ + +/*! \var download_count +The total number of files seen as downloaded. +*/ + diff --git a/include/info.h b/include/info.h index 67bbf6d..663ac27 100755 --- a/include/info.h +++ b/include/info.h @@ -1,3 +1,3 @@ -#define VERSION "2.2.5 Jul-16-2009" +#define VERSION "2.2.5 Jul-20-2009" #define PGM "sarg" #define URL "http://sarg.sourceforge.net" diff --git a/log.c b/log.c index f046e92..fd22965 100644 --- a/log.c +++ b/log.c @@ -1135,13 +1135,13 @@ int main(int argc,char *argv[]) strftime(tbuf, sizeof(tbuf), "%Y.%U", t); } - strftime(dia, sizeof(dia), "%d/%m/%Y", t); strftime(wdata, sizeof(wdata), "%Y%m%d", t); - idata=atoi(wdata); if(strncmp(df,"u",1)==0) strftime(dia, sizeof(dia), "%m/%d/%Y", t); + else + strftime(dia, sizeof(dia), "%d/%m/%Y", t); sprintf(hora,"%02d:%02d:%02d",t->tm_hour,t->tm_min,t->tm_sec); } else { strcpy(wtemp,data+1);