summaryrefslogtreecommitdiffstats
path: root/database/rrdlabels.c
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-03-13 23:39:06 +0200
committerGitHub <noreply@github.com>2023-03-13 23:39:06 +0200
commitcd50bf42367ed49ed12e944d66a445653c6f038c (patch)
tree381768f311ad42ee9dceb5cbe63fc8969a02f515 /database/rrdlabels.c
parent8068c952d8e1812caf348b77f38ae3df1014cc65 (diff)
/api/v2 part 4 (#14706)
* expose the order of group by * key renames in json wrapper v2 * added group by context and group by units * added view_average_values * fix for view_average_values when percentage is specified * option group-by-labels is enabling the exposure of all the labels that are used for each of the final grouped dimensions * when executing group by queries, allocate one dimension data at a time - not all of them * respect hidden dimensions * cancel running data query on socket error * use poll to detect socket errors * use POLLRDHUP to detect half closed connections * make sure POLLRDHUP is available * do not destroy aral-by-size arals * completed documentation of /api/v2/data. * moved min, max back to view; updated swagger yaml and json * default format for /api/v2/data is json2
Diffstat (limited to 'database/rrdlabels.c')
-rw-r--r--database/rrdlabels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/rrdlabels.c b/database/rrdlabels.c
index 3b728db95a..f6abd60232 100644
--- a/database/rrdlabels.c
+++ b/database/rrdlabels.c
@@ -399,7 +399,7 @@ size_t text_sanitize(unsigned char *dst, const unsigned char *src, size_t dst_si
// find how big this character is (2-4 bytes)
size_t utf_character_size = 2;
- while(utf_character_size <= 4 && src[utf_character_size] && IS_UTF8_BYTE(src[utf_character_size]) && !IS_UTF8_STARTBYTE(src[utf_character_size]))
+ while(utf_character_size < 4 && src[utf_character_size] && IS_UTF8_BYTE(src[utf_character_size]) && !IS_UTF8_STARTBYTE(src[utf_character_size]))
utf_character_size++;
if(utf) {