summaryrefslogtreecommitdiffstats
path: root/logsmanagement/rrd_api/rrd_api_generic.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:44 +0000
commit836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch)
tree1604da8f482d02effa033c94a84be42bc0c848c3 /logsmanagement/rrd_api/rrd_api_generic.c
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz
netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'logsmanagement/rrd_api/rrd_api_generic.c')
-rw-r--r--logsmanagement/rrd_api/rrd_api_generic.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/logsmanagement/rrd_api/rrd_api_generic.c b/logsmanagement/rrd_api/rrd_api_generic.c
deleted file mode 100644
index 752f5af75..000000000
--- a/logsmanagement/rrd_api/rrd_api_generic.c
+++ /dev/null
@@ -1,28 +0,0 @@
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#include "rrd_api_generic.h"
-
-void generic_chart_init(struct File_info *p_file_info){
- p_file_info->chart_meta->chart_data_generic = callocz(1, sizeof (struct Chart_data_generic));
- p_file_info->chart_meta->chart_data_generic->last_update = now_realtime_sec(); // initial value shouldn't be 0
- long chart_prio = p_file_info->chart_meta->base_prio;
-
- lgs_mng_do_num_of_logs_charts_init(p_file_info, chart_prio);
-
- lgs_mng_do_custom_charts_init(p_file_info);
-}
-
-void generic_chart_update(struct File_info *p_file_info){
- chart_data_generic_t *chart_data = p_file_info->chart_meta->chart_data_generic;
-
- if(chart_data->last_update != p_file_info->parser_metrics->last_update){
-
- time_t lag_in_sec = p_file_info->parser_metrics->last_update - chart_data->last_update - 1;
-
- lgs_mng_do_num_of_logs_charts_update(p_file_info, lag_in_sec, chart_data);
-
- lgs_mng_do_custom_charts_update(p_file_info, lag_in_sec);
-
- chart_data->last_update = p_file_info->parser_metrics->last_update;
- }
-}