summaryrefslogtreecommitdiffstats
path: root/src/collectors/cups.plugin/cups_plugin.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:33:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:34:10 +0000
commit83ba6762cc43d9db581b979bb5e3445669e46cc2 (patch)
tree2e69833b43f791ed253a7a20318b767ebe56cdb8 /src/collectors/cups.plugin/cups_plugin.c
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.tar.xz
netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.zip
Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #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.c6
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;