summaryrefslogtreecommitdiffstats
path: root/src/collectors/xenstat.plugin
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/xenstat.plugin
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/xenstat.plugin')
-rw-r--r--src/collectors/xenstat.plugin/integrations/xen_xcp-ng.md4
-rw-r--r--src/collectors/xenstat.plugin/xenstat_plugin.c7
2 files changed, 4 insertions, 7 deletions
diff --git a/src/collectors/xenstat.plugin/integrations/xen_xcp-ng.md b/src/collectors/xenstat.plugin/integrations/xen_xcp-ng.md
index 2aed4a06e..cd356202d 100644
--- a/src/collectors/xenstat.plugin/integrations/xen_xcp-ng.md
+++ b/src/collectors/xenstat.plugin/integrations/xen_xcp-ng.md
@@ -151,8 +151,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
diff --git a/src/collectors/xenstat.plugin/xenstat_plugin.c b/src/collectors/xenstat.plugin/xenstat_plugin.c
index e4b8a2bd0..63592b6fd 100644
--- a/src/collectors/xenstat.plugin/xenstat_plugin.c
+++ b/src/collectors/xenstat.plugin/xenstat_plugin.c
@@ -920,8 +920,6 @@ static void xenstat_send_domain_metrics() {
}
int main(int argc, char **argv) {
- clocks_init();
-
// ------------------------------------------------------------------------
// initialization of netdata plugin
@@ -1022,12 +1020,11 @@ int main(int argc, char **argv) {
time_t started_t = now_monotonic_sec();
size_t iteration;
- 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++) {
- usec_t dt = heartbeat_next(&hb, step);
+ usec_t dt = heartbeat_next(&hb);
if(unlikely(netdata_exit)) break;