]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix the output report directory name
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Mon, 19 Jan 2015 09:31:52 +0000 (10:31 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Mon, 19 Jan 2015 09:31:52 +0000 (10:31 +0100)
The reports were stored in a directory named 000000000-000000000 instead
of the correct date covered by the report.

log.c

diff --git a/log.c b/log.c
index 89254e840d527ab67efed286c7eb15bb80b28d76..eb489084f0d5d8bb95cee30ac63a4f2a56abc64e 100644 (file)
--- a/log.c
+++ b/log.c
@@ -735,6 +735,8 @@ int main(int argc,char *argv[])
                strftime(date1,sizeof(date1),"%x",&period.end);
                // TRANSLATORS: The %s are the start and end dates in locale format.
                debuga(_("Period extracted from log files: %s-%s\n"),date0,date1);
+       }
+       if (ReadFilter.DateRange[0] != '\0') {
                getperiod_fromrange(&period,dfrom,duntil);
        }
        if (getperiod_buildtext(&period)<0) {