summaryrefslogtreecommitdiffstats
path: root/src/collectors/cups.plugin
diff options
context:
space:
mode:
Diffstat (limited to 'src/collectors/cups.plugin')
-rw-r--r--src/collectors/cups.plugin/cups_plugin.c6
-rw-r--r--src/collectors/cups.plugin/integrations/cups.md4
2 files changed, 4 insertions, 6 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;
diff --git a/src/collectors/cups.plugin/integrations/cups.md b/src/collectors/cups.plugin/integrations/cups.md
index 828a7717e..1fec7135f 100644
--- a/src/collectors/cups.plugin/integrations/cups.md
+++ b/src/collectors/cups.plugin/integrations/cups.md
@@ -115,8 +115,8 @@ The file format is a modified INI syntax. The general structure is:
[section2]
option3 = some third value
```
-You can edit the configuration file using the `edit-config` script from the
-Netdata [config directory](/docs/netdata-agent/configuration/README.md#the-netdata-config-directory).
+You can edit the configuration file using the [`edit-config`](https://github.com/netdata/netdata/blob/master/docs/netdata-agent/configuration/README.md#edit-a-configuration-file-using-edit-config) script from the
+Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/netdata-agent/configuration/README.md#the-netdata-config-directory).
```bash
cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata