From db3dd1149ba26f8611e52190483da92d5895cd4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Sun, 26 Aug 2012 15:53:52 +0200 Subject: [PATCH] Extract the covered period from the sarg log file A sarg log file is named after the covered date range. The range is extracted and used in the report. --- readlog_sarg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readlog_sarg.c b/readlog_sarg.c index ed93dfc..106f4c3 100644 --- a/readlog_sarg.c +++ b/readlog_sarg.c @@ -36,6 +36,10 @@ A new file is being read. The name of the file is \a FileName. static void Sarg_NewFile(const char *FileName) { InSargLog=false; + if (getperiod_fromsarglog(FileName,&period)<0) { + debuga(_("The name of the file is invalid: %s\n"),FileName); + exit(EXIT_FAILURE); + } } /*! -- 2.47.3