diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 14:45:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 14:48:03 +0000 |
commit | e55403ed71282d7bfd8b56df219de3c28a8af064 (patch) | |
tree | 524889e5becb81643bf8741e3082955dca076f09 /src/collectors/cups.plugin/cups_plugin.c | |
parent | Releasing debian version 1.47.5-1. (diff) | |
download | netdata-e55403ed71282d7bfd8b56df219de3c28a8af064.tar.xz netdata-e55403ed71282d7bfd8b56df219de3c28a8af064.zip |
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 <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/collectors/cups.plugin/cups_plugin.c')
-rw-r--r-- | src/collectors/cups.plugin/cups_plugin.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |