SF.net SVN: logwatch:[308] trunk/scripts/shared/applyeurodate
[email protected] Wed, 6 Jan 2016 22:50:05 +0000
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 308
http://sourceforge.net/p/logwatch/code/308
Author: stefjakobs
Date: 2016-01-06 22:50:05 +0000 (Wed, 06 Jan 2016)
Log Message:
-----------
fix SearchDate Timefilter to support milliseconds.
Modified Paths:
--------------
trunk/scripts/shared/applyeurodate
Modified: trunk/scripts/shared/applyeurodate
===================================================================
--- trunk/scripts/shared/applyeurodate 2016-01-06 21:16:24 UTC (rev 307)
+++ trunk/scripts/shared/applyeurodate 2016-01-06 22:50:05 UTC (rev 308)
@@ -1,20 +1,5 @@
##########################################################################
-# $Id$
-##########################################################################
-# $Log: applyeurodate,v $
-# Revision 1.4 2008/06/30 23:07:51 kirk
-# fixed copyright holders for files where I know who they should be
#
-# Revision 1.3 2008/03/24 23:31:27 kirk
-# added copyright/license notice to each script
-#
-# Revision 1.2 2006/10/20 16:12:38 bjorn
-# Made match on milliseconds optional.
-#
-# Revision 1.1 2006/05/30 19:04:26 bjorn
-# Added fail2ban service, written by Yaroslav Halchenko.
-#
-#
# This was originally written by
# Yaroslav Halchenko <[email protected]>
########################################################
@@ -45,7 +30,7 @@
my $Debug = $ENV{'LOGWATCH_DEBUG'} || 0;
-$SearchDate = TimeFilter($ARGV[0] || '%Y-%m-%d %H:%M:%S ');
+$SearchDate = TimeFilter($ARGV[0] || '%Y-%m-%d %H:%M:%S(,...)? ');
if ( $Debug > 5 ) {
print STDERR "DEBUG: Inside ApplyEuroDate...\n";
@@ -53,7 +38,7 @@
}
while (defined($ThisLine = <STDIN>)) {
- if ($ThisLine =~ m/^$SearchDate(,...)?/o) {
+ if ($ThisLine =~ m/^$SearchDate/o) {
print $ThisLine;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------