]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Update version date.
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 20 Jul 2009 08:11:35 +0000 (08:11 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 20 Jul 2009 08:11:35 +0000 (08:11 +0000)
Add embryo of documentation for conf.h.

documentation/conf.txt [new file with mode: 0644]
include/info.h
log.c

diff --git a/documentation/conf.txt b/documentation/conf.txt
new file mode 100644 (file)
index 0000000..8658022
--- /dev/null
@@ -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.
+*/
+
index 67bbf6dfc14c6e7754774e271b5d30cd24ae7229..663ac27c71785a04b01c05311f28cf976a154298 100755 (executable)
@@ -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 f046e92b870d4587ce4d6e046e077d774137fed5..fd2296528891ed12da9b9f00a886c963e4441523 100644 (file)
--- 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);