Check on parents the microseconds delta sent by agents (#14422)
check streaming BEGIN microseconds for negative values
Costa Tsaousis committed
Feb 3, 2023 at 21:40 UTC
bd7c9ebcc9600dc4da2034bf211e818ec3f2f0c6
1 file changed
+5
-2
collectors/plugins.d/pluginsd_parser.c
+5
-2
@@ -148,8 +148,11 @@ PARSER_RC pluginsd_begin(char **words, size_t num_words, void *user)
148
((PARSER_USER_OBJECT *)user)->st = st;
149
150
usec_t microseconds = 0;
151
- if (microseconds_txt && *microseconds_txt)
152
- microseconds = str2ull(microseconds_txt);
151
+ if (microseconds_txt && *microseconds_txt) {
152
+ long long t = str2ll(microseconds_txt, NULL);
153
+ if(t >= 0)
154
+ microseconds = t;
155
+ }
156
157
#ifdef NETDATA_LOG_REPLICATION_REQUESTS
158
if(st->replay.log_next_data_collection) {