From e55403ed71282d7bfd8b56df219de3c28a8af064 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 25 Nov 2024 15:45:37 +0100 Subject: Merging upstream version 2.0.3+dfsg: - does not include dygraphs anymore (Closes: #923993) - does not include pako anymore (Closes: #1042533) - does not include dashboard binaries anymore (Closes: #1045145) Signed-off-by: Daniel Baumann --- src/collectors/cups.plugin/cups_plugin.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/collectors/cups.plugin/cups_plugin.c') diff --git a/src/collectors/cups.plugin/cups_plugin.c b/src/collectors/cups.plugin/cups_plugin.c index 20b155e14..8d9e46cb1 100644 --- a/src/collectors/cups.plugin/cups_plugin.c +++ b/src/collectors/cups.plugin/cups_plugin.c @@ -226,7 +226,6 @@ void reset_metrics() { } int main(int argc, char **argv) { - clocks_init(); nd_log_initialize_for_external_plugins("cups.plugin"); parse_command_line(argc, argv); @@ -243,12 +242,11 @@ int main(int argc, char **argv) { time_t started_t = now_monotonic_sec(); size_t iteration = 0; - usec_t step = netdata_update_every * USEC_PER_SEC; heartbeat_t hb; - heartbeat_init(&hb); + heartbeat_init(&hb, netdata_update_every * USEC_PER_SEC); for (iteration = 0; 1; iteration++) { - heartbeat_next(&hb, step); + heartbeat_next(&hb); if (unlikely(netdata_exit)) break; -- cgit v1.2.3