From 5e19ff78ff054a65559eee1acebd19724d29088b Mon Sep 17 00:00:00 2001 From: eeff <33566201+eeff@users.noreply.github.com> Date: Wed, 26 Apr 2023 11:41:48 +0800 Subject: [PATCH] fix: static tag value expired error in read_report_group --- src/adapter/driver/driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/adapter/driver/driver.c b/src/adapter/driver/driver.c index 162a522f..2a6849f3 100644 --- a/src/adapter/driver/driver.c +++ b/src/adapter/driver/driver.c @@ -1003,7 +1003,8 @@ static int read_report_group(int64_t timestamp, int64_t timeout, break; } - if ((timestamp - value.timestamp) > timeout) { + if (!neu_tag_attribute_test(tag, NEU_ATTRIBUTE_STATIC) && + (timestamp - value.timestamp) > timeout) { datas[index].value.type = NEU_TYPE_ERROR; datas[index].value.value.i32 = NEU_ERR_PLUGIN_TAG_VALUE_EXPIRED; } else {