commit 136eae2: [Minor] Be more relaxed about usec

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Oct 8 13:42:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-10-08 14:37:51 +0100
URL: https://github.com/rspamd/rspamd/commit/136eae23204b7edd6795aa2dcf5f24ef0a974050 (HEAD -> master)

[Minor] Be more relaxed about usec

---
 utils/rspamd_stats.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/rspamd_stats.pl b/utils/rspamd_stats.pl
index 6d304742a..7bb6cbb1c 100755
--- a/utils/rspamd_stats.pl
+++ b/utils/rspamd_stats.pl
@@ -713,7 +713,7 @@ sub log_time_format {
 
         # 2017-08-08 00:00:01 #66984(
         # 2017-08-08 00:00:01.001 #66984(
-        if (/^\d{4}-\d\d-\d\d \d\d:\d\d:\d\d(\.\d{3})? #\d+\(/) {
+        if (/^\d{4}-\d\d-\d\d \d\d:\d\d:\d\d(\.\d{3,5})? #\d+\(/) {
             $format = 'rspamd';
             last;
         }


More information about the Commits mailing list