From 636030fe73dc8133b6bc9e61426eb6cca78491ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sat, 26 Sep 2015 23:52:32 +0000 Subject: [PATCH] Added query_delay for #166 --- lib/Query_Processor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Query_Processor.cpp b/lib/Query_Processor.cpp index d824e96aa..e5e933870 100644 --- a/lib/Query_Processor.cpp +++ b/lib/Query_Processor.cpp @@ -979,6 +979,12 @@ bool Query_Processor::query_parser_first_comment(Query_Processor_Output *qpo, ch remove_spaces(value); if (strlen(key)) { char c=value[0]; + if (!strcasecmp(key,"query_delay")) { + if (c >= '0' && c <= '9') { // it is a digit + int t=atoi(value); + qpo->delay=t; + } + } if (!strcasecmp(key,"query_timeout")) { if (c >= '0' && c <= '9') { // it is a digit int t=atoi(value);